History

movdec: Fix parsing of a very last empty atom of size 8.

Michael Niedermayer committed 14 years ago

Commit b27ac351 parent 61b1d851 file · +1 −1Browse files

Unified · Split

libavformat/mov.c+1−1
@@ -307,7 +307,7 @@ static int mov_read_default(MOVContext *c, AVIOContext *pb, MOVAtom atom) · 306 unmodified lines
307307
308308 if (atom.size < 0)
309309 atom.size = INT64_MAX;
310− while (total_size + 8 < atom.size && !url_feof(pb)) {
310+ while (total_size + 8 <= atom.size && !url_feof(pb)) {
311311 int (*parse)(MOVContext*, AVIOContext*, MOVAtom) = NULL;
312312 a.size = atom.size;
313313 a.type=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