diff options
Diffstat (limited to 'libavformat/flvdec.c')
-rw-r--r-- | libavformat/flvdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index 7e02cdd3b4..bb27131cfd 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -311,7 +311,7 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt) dts = avio_rb24(s->pb); dts |= avio_r8(s->pb) << 24; // av_log(s, AV_LOG_DEBUG, "type:%d, size:%d, dts:%d\n", type, size, dts); - if (url_feof(s->pb)) + if (s->pb->eof_reached) return AVERROR_EOF; avio_seek(s->pb, 3, SEEK_CUR); /* stream id, always 0 */ flags = 0; |