[FFmpeg-devel] [FFmpeg-cvslog] avcodec/utvideodec: use cached bitstream reader everywhere except on x86_32

James Almer jamrial at gmail.com
Thu Aug 30 23:08:10 EEST 2018


> ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com <http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog>> | Tue Apr  3 13:32:07 2018 +0200| [562f00ed072080b34f351577818783a94ac9de62] | committer: Paul B Mahol
>
> avcodec/utvideodec: use cached bitstream reader everywhere except on x86_32
>
> >/From 100x real-time decoding to 138x real-time decoding for 320x240
> video. /
> Signed-off-by: Paul B Mahol <onemda at gmail.com <http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog>>
>
> >/http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=562f00ed072080b34f351577818783a94ac9de62
> /---
>
>  libavcodec/utvideodec.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/libavcodec/utvideodec.c b/libavcodec/utvideodec.c
> index 82cb038ccd..3891df3570 100644
> --- a/libavcodec/utvideodec.c
> +++ b/libavcodec/utvideodec.c
> @@ -27,6 +27,7 @@
>  #include <inttypes.h>
>  #include <stdlib.h>
>  
> +#define CACHED_BITSTREAM_READER !ARCH_X86_32

The checks in get_bits.h are #ifdef, so the value you're setting here is
going to be ignored.
You should instead do it the same way as UNCHECKED_BITSTREAM_READER:
Always defined
to 0 by default, then set to 1 by individual components.

>  #define UNCHECKED_BITSTREAM_READER 1
>  
>  #include "libavutil/intreadwrite.h"



More information about the ffmpeg-devel mailing list