aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2011-12-06 00:16:22 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2011-12-06 00:16:22 +0100
commita448a5d1c4620aa58ec138fbffd46d18d42d53e0 (patch)
treea9e0b08bcabc0003f5fab2a51f987fbf08aab53d /libavformat
parent4547d883d39eb62a3b3c7e243df6826bbc8f5829 (diff)
downloadffmpeg-a448a5d1c4620aa58ec138fbffd46d18d42d53e0.tar.gz
Do not fail fatally if chan atom is too short.
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/mov.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 4790200da2..40acf78a65 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -2341,7 +2341,7 @@ static int mov_read_elst(MOVContext *c, AVIOContext *pb, MOVAtom atom)
static int mov_read_chan(MOVContext *c, AVIOContext *pb, MOVAtom atom)
{
if (atom.size < 16)
- return AVERROR_INVALIDDATA;
+ return 0;
avio_skip(pb, 4);
ff_mov_read_chan(c->fc, atom.size - 4, c->fc->streams[0]->codec);
return 0;