Browse Source

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>
tags/n0.10
Jean First Martin Storsjö 14 years ago
parent
commit
2df73eefb4
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/flvdec.c

+ 1
- 1
libavformat/flvdec.c View File

@@ -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 */


Loading…
Cancel
Save