From 2df73eefb4f7c954d2bb80afa823bb7d4f8e5006 Mon Sep 17 00:00:00 2001 From: Jean First Date: Fri, 30 Dec 2011 21:08:02 +0100 Subject: [PATCH] flvdec: Fix compiler warning for uninitialized variables MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These can't be used uninitialized in practice, but the compiler doesn't realize it. Signed-off-by: Martin Storsjö --- libavformat/flvdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index 4f1c805c81..2f770b30f2 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -441,7 +441,7 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt) int ret, i, type, size, flags, is_audio; int64_t next, pos; int64_t dts, pts = AV_NOPTS_VALUE; - int sample_rate, channels; + int sample_rate = 0, channels = 0; AVStream *st = NULL; for(;;avio_skip(s->pb, 4)){ /* pkt size is repeated at end. skip it */