[FFmpeg-devel] [PATCH] flvdec: use av_uninit to silence compiler warnings

Jean First jeanfirst at gmail.com
Sun Jan 1 23:59:00 CET 2012


Signed-off-by: Jean First <jeanfirst at gmail.com>
---
 libavformat/flvdec.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index 1fdcc4d..7705c48 100644
--- a/libavformat/flvdec.c
+++ b/libavformat/flvdec.c
@@ -452,7 +452,8 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt)
     int stream_type=-1;
     int64_t next, pos;
     int64_t dts, pts = AV_NOPTS_VALUE;
-    int sample_rate, channels;
+    int av_uninit(channels);
+    int av_uninit(sample_rate);
     AVStream *st = NULL;
 
  for(;;avio_skip(s->pb, 4)){ /* pkt size is repeated at end. skip it */
-- 
1.7.7.3



More information about the ffmpeg-devel mailing list