History

Do not fail fatally if chan atom is too short.

Carl Eugen Hoyos committed 14 years ago

Commit a448a5d1 parent 4547d881 file · +1 −1Browse files

Unified · Split

libavformat/mov.c+1−1
@@ -2341,7 +2341,7 @@ static int mov_read_elst(MOVContext *c, AVIOContext *pb, MOVAtom atom) · 2340 unmodified lines
2341static int mov_read_chan(MOVContext *c, AVIOContext *pb, MOVAtom atom)2341static int mov_read_chan(MOVContext *c, AVIOContext *pb, MOVAtom atom)
2342{2342{
2343 if (atom.size < 16)2343 if (atom.size < 16)
2344 return AVERROR_INVALIDDATA;2344 return 0;
2345 avio_skip(pb, 4);2345 avio_skip(pb, 4);
2346 ff_mov_read_chan(c->fc, atom.size - 4, c->fc->streams[0]->codec);2346 ff_mov_read_chan(c->fc, atom.size - 4, c->fc->streams[0]->codec);
2347 return 0;2347 return 0;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t