mov: check for EOF in long lasting loops
authorLuca Barbato <lu_zero@gentoo.org>
Sun, 16 Sep 2012 18:32:12 +0000 (20:32 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Tue, 18 Sep 2012 13:32:52 +0000 (15:32 +0200)
commit9888ffb1ce5e0a17f711b01933d504c72ea29d3b
treea973b67e0948fbcc1dacd0f606f06bc89c0e83fc
parent419ffb239074dbe1ff3c2a2debc95ca48ee42268
mov: check for EOF in long lasting loops

A quite widespread pattern in the demuxer is read a 32bit unsigned
integer and then loop till this value is reached.

Checking for EOF prevents pathological situations.
libavformat/mov.c