[FFmpeg-cvslog] wav: propagate ff_get_wav_header() error code in w64_read_header()

Stefano Sabatini git at videolan.org
Tue May 24 13:42:14 CEST 2011


ffmpeg | branch: master | Stefano Sabatini <stefano.sabatini-lala at poste.it> | Tue May 24 13:18:31 2011 +0200| [e9f4001a30c563a840614048629055769f6f7020] | committer: Stefano Sabatini

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

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e9f4001a30c563a840614048629055769f6f7020
---

 libavformat/wav.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/wav.c b/libavformat/wav.c
index 9f7b3c7..a1f9ff1 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;



More information about the ffmpeg-cvslog mailing list