wav: propagate ff_get_wav_header() error code in w64_read_header()

Alos fix warning:
wav.c: In function ‘w64_read_header’:
wav.c:546: warning: ‘ret’ may be used uninitialized in this function
This commit is contained in:
Stefano Sabatini 2011-05-24 13:18:31 +02:00
parent d42dce7bb3
commit e9f4001a30
1 changed files with 1 additions and 1 deletions

View File

@ -194,7 +194,7 @@ static int wav_parse_fmt_tag(AVFormatContext *s, int64_t size, AVStream **st)
if (!*st)
return AVERROR(ENOMEM);
ff_get_wav_header(pb, (*st)->codec, size);
ret = ff_get_wav_header(pb, (*st)->codec, size);
if (ret < 0)
return ret;
(*st)->need_parsing = AVSTREAM_PARSE_FULL;