[FFmpeg-devel] [PATCH 05/11] flvdec: fix compiler warning for uninitialized variables

Jean First jeanfirst at gmail.com
Fri Dec 30 21:08:02 CET 2011


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 57ef061..3b1ab93 100644
--- a/libavformat/flvdec.c
+++ b/libavformat/flvdec.c
@@ -453,7 +453,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 sample_rate = 0;
+    int channels = 0;
     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