Browse Source

av_find_stream_info: initialize ret

This should fix hypothetical corner cases where it might have never been initialized before use

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.0
Michael Niedermayer 12 years ago
parent
commit
ccba9535dc
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/utils.c

+ 1
- 1
libavformat/utils.c View File

@@ -2621,7 +2621,7 @@ int av_find_stream_info(AVFormatContext *ic)

int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
{
int i, count, ret, j;
int i, count, ret = 0, j;
int64_t read_size;
AVStream *st;
AVPacket pkt1, *pkt;


Loading…
Cancel
Save