Commit bb6d5411 authored by Ronald S. Bultje's avatar Ronald S. Bultje

asf: don't seek back on EOF.

Seeking back on EOF will reset the EOF flag, causing us to re-enter
the loop to find the next marker in the ASF file, thus potentially
causing an infinite loop.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
parent 6e57a02b
...@@ -761,7 +761,7 @@ static int ff_asf_get_packet(AVFormatContext *s, AVIOContext *pb) ...@@ -761,7 +761,7 @@ static int ff_asf_get_packet(AVFormatContext *s, AVIOContext *pb)
c= avio_r8(pb); c= avio_r8(pb);
d= avio_r8(pb); d= avio_r8(pb);
rsize+=3; rsize+=3;
}else{ } else if (!pb->eof_reached) {
avio_seek(pb, -1, SEEK_CUR); //FIXME avio_seek(pb, -1, SEEK_CUR); //FIXME
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment