summaryrefslogtreecommitdiff
path: root/libavformat/mov.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-10-16 20:21:31 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-10-16 20:21:31 +0200
commit6d55a40b00801899f7975b22401bdd96bbc228af (patch)
treeeab3634d1270186bdb6df745d43706aa826693d5 /libavformat/mov.c
parent24d6af0f7e5e152333d3caf8dee5e948e5c83b62 (diff)
mov: print warning if ff_get_wav_header() fails
Fixes CID717497 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r--libavformat/mov.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index bf695e7832..3f7318c857 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;
}