From a448a5d1c4620aa58ec138fbffd46d18d42d53e0 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Tue, 6 Dec 2011 00:16:22 +0100 Subject: [PATCH] Do not fail fatally if chan atom is too short. --- libavformat/mov.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;