[FFmpeg-cvslog] Do not fail fatally if chan atom is too short.

Carl Eugen Hoyos git at videolan.org
Tue Dec 6 00:17:45 CET 2011


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Tue Dec  6 00:16:22 2011 +0100| [a448a5d1c4620aa58ec138fbffd46d18d42d53e0] | committer: Carl Eugen Hoyos

Do not fail fatally if chan atom is too short.

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

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

diff --git a/libavformat/mov.c b/libavformat/mov.c
index 4790200..40acf78 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;



More information about the ffmpeg-cvslog mailing list