Commit bf959ac2 authored by Peter Ross's avatar Peter Ross Committed by Michael Niedermayer

tty: return EOF when the 'effective' end of file is reached. ('effective'...

tty: return EOF when the 'effective' end of file is reached. ('effective' because ansi/tty files may be concatenated with SAUCE/EFI metadata)
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 688cb712
......@@ -128,6 +128,8 @@ static int read_packet(AVFormatContext *avctx, AVPacket *pkt)
if (s->fsize) {
// ignore metadata buffer
uint64_t p = avio_tell(avctx->pb);
if (p == s->fsize)
return AVERROR_EOF;
if (p + s->chars_per_frame > s->fsize)
n = s->fsize - p;
}
......
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