[libav-devel] [PATCH 05/11] cbs_mpeg2: Fix marker_bit type

Mark Thompson sw at jkqxz.net
Wed Nov 29 23:11:57 CET 2017


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

diff --git a/libavcodec/cbs_mpeg2.c b/libavcodec/cbs_mpeg2.c
index cd8e1b66d..5956f3933 100644
--- a/libavcodec/cbs_mpeg2.c
+++ b/libavcodec/cbs_mpeg2.c
@@ -54,7 +54,7 @@
         xui(width, name, current->name)
 
 #define marker_bit() do { \
-        av_unused int one = 1; \
+        av_unused uint32_t one; \
         CHECK(ff_cbs_read_unsigned(ctx, rw, 1, "marker_bit", &one, 1, 1)); \
     } while (0)
 
-- 
2.11.0



More information about the libav-devel mailing list