[FFmpeg-devel] [PATCH] avcodec/utvideodec: use cached bitstream reader only on targets with fast 64bit ops

James Almer jamrial at gmail.com
Sun Sep 2 02:18:35 EEST 2018


Signed-off-by: James Almer <jamrial at gmail.com>
---
Unbenched, but if x86_32 is slow with it, then chances are so are arm
and similar 32bit architectures.

It may also be worth looking into just making HAVE_FAST_64BIT the
default in get_bits.h directly.

 libavcodec/utvideodec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/utvideodec.c b/libavcodec/utvideodec.c
index 3891df3570..542b051e45 100644
--- a/libavcodec/utvideodec.c
+++ b/libavcodec/utvideodec.c
@@ -27,7 +27,7 @@
 #include <inttypes.h>
 #include <stdlib.h>
 
-#define CACHED_BITSTREAM_READER !ARCH_X86_32
+#define CACHED_BITSTREAM_READER HAVE_FAST_64BIT
 #define UNCHECKED_BITSTREAM_READER 1
 
 #include "libavutil/intreadwrite.h"
-- 
2.18.0



More information about the ffmpeg-devel mailing list