OSDN Git Service

rtpdec_vp8: Avoid a warning about a possibly unused variable
authorMartin Storsjö <martin@martin.st>
Mon, 7 Jan 2013 20:02:07 +0000 (22:02 +0200)
committerMartin Storsjö <martin@martin.st>
Tue, 8 Jan 2013 15:43:11 +0000 (17:43 +0200)
The warning is a false positive, but I prefer actually initializing
it over masking it with av_uninit, since the code is not performance
critical.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/rtpdec_vp8.c

index 966f7b8..13efa54 100644 (file)
@@ -70,7 +70,7 @@ static int vp8_handle_packet(AVFormatContext *ctx, PayloadContext *vp8,
     int extended_bits, part_id;
     int pictureid_present = 0, tl0picidx_present = 0, tid_present = 0,
         keyidx_present = 0;
-    int pictureid = -1, pictureid_mask;
+    int pictureid = -1, pictureid_mask = 0;
     int returned_old_frame = 0;
     uint32_t old_timestamp;