[FFmpeg-devel] Making [START|STOP]_TIMER work on more arcs

Michael Niedermayer michaelni
Wed Aug 8 23:37:13 CEST 2007


Hi

On Wed, Aug 08, 2007 at 02:08:52PM -0700, Roman Shaposhnick wrote:
> While profiling bitstream.h change, I decided to make [START|STOP]_TIMER
> work on SPARC/Solaris and possibly other architectures that support
> gethrtime (RTLinux, etc.)
> 
> Ok to apply?
> 
> Thanks,
> Roman.

[configure i dont maintain]

> Index: ffmpeg/libavutil/common.h
> ===================================================================
> --- ffmpeg/libavutil/common.h	(revision 9987)
> +++ ffmpeg/libavutil/common.h	(working copy)
> @@ -268,6 +268,7 @@
>      }
>  
>  #if defined(ARCH_X86) || defined(ARCH_POWERPC) || defined(ARCH_BFIN)
> +#define AV_READ_TIME read_time()

please use

#define AV_READ_TIME read_time

the lack of a () makes AV_READ_TIME look like a constant

except that iam ok with it


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

When the tyrant has disposed of foreign enemies by conquest or treaty, and
there is nothing more to fear from them, then he is always stirring up
some war or other, in order that the people may require a leader. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070808/2bd1e424/attachment.pgp>



More information about the ffmpeg-devel mailing list