[FFmpeg-devel] [RFC][PATCH] avformat/flvdec: avoid reseting eof_reached to 0 silently
Zhang Rui
bbcallen at gmail.com
Fri Apr 10 12:08:08 CEST 2015
Ping?
Take libavformat/flvdec.c as an example:
(Line 903):
// 1. return 0 for EOF/Error
// 2. mark s->eof_reached to 1, so far, so good.
size = avio_rb32(s->pb);
// 1. make a successful seek to the wrong place
// 2. reset s->eof_reached to 0
avio_seek(s->pb, fsize - 3 - size, SEEK_SET);
// continue to read at wrong place.
if (size == avio_rb24(s->pb) + 11) {
...
More information about the ffmpeg-devel
mailing list