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
23412341 static int mov_read_chan(MOVContext *c, AVIOContext *pb, MOVAtom atom)
23422342 {
23432343 if (atom.size < 16)
2344− return AVERROR_INVALIDDATA;
2344+ return 0;
23452345 avio_skip(pb, 4);
23462346 ff_mov_read_chan(c->fc, atom.size - 4, c->fc->streams[0]->codec);
23472347 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