aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2011-05-24 13:18:31 +0200
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2011-05-24 13:34:47 +0200
commite9f4001a30c563a840614048629055769f6f7020 (patch)
treec0481325825af8bac5969c2c31f6477fafb6b582
parentd42dce7bb35927b5e93ba7569d9e8dba38ab95a1 (diff)
downloadffmpeg-e9f4001a30c563a840614048629055769f6f7020.tar.gz
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
-rw-r--r--libavformat/wav.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/wav.c b/libavformat/wav.c
index 9f7b3c75f9..a1f9ff109d 100644
--- a/libavformat/wav.c
+++ b/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;