mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
asfdec_o: break if EOF is reached after asf_read_packet_header
asf_read_payload can unset eof_reached, so check it also before calling that function. This fixes infinite loops. Reviewed-by: Alexandra Hájková <alexandra.khirnova@gmail.com> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> (cherry picked from commit 0e32153e9c296366e004352ecb3f9fcea74dc17d) Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
This commit is contained in:
parent
4679e54388
commit
93559adfbf
@ -1434,6 +1434,8 @@ static int asf_read_packet(AVFormatContext *s, AVPacket *pkt)
|
||||
while (!pb->eof_reached) {
|
||||
if (asf->state == PARSE_PACKET_HEADER) {
|
||||
asf_read_packet_header(s);
|
||||
if (pb->eof_reached)
|
||||
break;
|
||||
if (!asf->nb_mult_left)
|
||||
asf->state = READ_SINGLE;
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user