[FFmpeg-cvslog] rtpdec_vp8: Avoid a warning about a possibly unused variable

Martin Storsjö git at videolan.org
Wed Jan 9 11:39:35 CET 2013


ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Mon Jan  7 22:02:07 2013 +0200| [9c80ed836a511293f4cc3a858060969d32f2b1ce] | committer: Martin Storsjö

rtpdec_vp8: Avoid a warning about a possibly unused variable

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 at martin.st>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9c80ed836a511293f4cc3a858060969d32f2b1ce
---

 libavformat/rtpdec_vp8.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/rtpdec_vp8.c b/libavformat/rtpdec_vp8.c
index 966f7b8..13efa54 100644
--- a/libavformat/rtpdec_vp8.c
+++ b/libavformat/rtpdec_vp8.c
@@ -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;
 



More information about the ffmpeg-cvslog mailing list