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
pull/2/head
Stefano Sabatini 14 years ago
parent d42dce7bb3
commit e9f4001a30
  1. 2
      libavformat/wav.c

@ -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;

Loading…
Cancel
Save