[FFmpeg-cvslog] mov: print warning if ff_get_wav_header() fails

Michael Niedermayer git at videolan.org
Wed Oct 17 00:11:12 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Oct 16 20:21:31 2012 +0200| [6d55a40b00801899f7975b22401bdd96bbc228af] | committer: Michael Niedermayer

mov: print warning if ff_get_wav_header() fails

Fixes CID717497
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavformat/mov.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libavformat/mov.c b/libavformat/mov.c
index bf695e7..3f7318c 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -689,7 +689,9 @@ static int mov_read_wfex(MOVContext *c, AVIOContext *pb, MOVAtom atom)
         return 0;
     st = c->fc->streams[c->fc->nb_streams-1];
 
-    ff_get_wav_header(pb, st->codec, atom.size);
+    if (ff_get_wav_header(pb, st->codec, atom.size) < 0) {
+        av_log(c->fc, AV_LOG_WARNING, "get_wav_header failed\n");
+    }
 
     return 0;
 }



More information about the ffmpeg-cvslog mailing list