diff options
author | Jean First <jeanfirst@gmail.com> | 2011-12-30 21:08:02 +0100 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2012-01-04 22:15:47 +0200 |
commit | 2df73eefb4f7c954d2bb80afa823bb7d4f8e5006 (patch) | |
tree | 3d8a594584ae5839aba8aee15683a1e4d7dd7061 | |
parent | 4be386b318e2c707f3f65df49244768afc47c3d9 (diff) | |
download | ffmpeg-2df73eefb4f7c954d2bb80afa823bb7d4f8e5006.tar.gz |
flvdec: Fix compiler warning for uninitialized variables
These can't be used uninitialized in practice, but the
compiler doesn't realize it.
Signed-off-by: Martin Storsjö <martin@martin.st>
-rw-r--r-- | libavformat/flvdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |