[FFmpeg-devel] [PATCH] avcodec/fmvc: find Uninitialized variables for Coverity

Steven Liu lq at chinaffmpeg.org
Mon Feb 13 01:43:53 EET 2017


Initialized variables opcode to indent

Signed-off-by: Steven Liu <lq at chinaffmpeg.org>
---
 libavcodec/fmvc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/fmvc.c b/libavcodec/fmvc.c
index 54bb6f9..5e54d33 100644
--- a/libavcodec/fmvc.c
+++ b/libavcodec/fmvc.c
@@ -53,7 +53,7 @@ typedef struct FMVCContext {
 
 static int decode_type2(GetByteContext *gb, PutByteContext *pb)
 {
-    unsigned repeat = 0, first = 1, opcode;
+    unsigned repeat = 0, first = 1, opcode = 0;
     int i, len, pos;
 
     while (bytestream2_get_bytes_left(gb) > 0) {
-- 
2.10.1.382.ga23ca1b.dirty





More information about the ffmpeg-devel mailing list