From cc127ff24d82a04611fac14cf4114a2262f87111 Mon Sep 17 00:00:00 2001
From: asivery <asivery@protonmail.com>
Date: Tue, 27 Sep 2022 00:13:10 +0200
Subject: [PATCH] avformat/aea: Make it so the AEA demuxer returns EOF at the
end of file instead of EIO
Signed-off-by: asivery <asivery@protonmail.com>
---
libavformat/aea.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
@@ -93,8 +93,11 @@ static int aea_read_packet(AVFormatContext *s, AVPacket *pkt)
int ret = av_get_packet(s->pb, pkt, s->streams[0]->codecpar->block_align);
pkt->stream_index = 0;
- if (ret <= 0)
- return AVERROR(EIO);
+ if (ret <= 0){
+ if(ret < 0)
+ return ret;
+ return AVERROR_EOF;
+ }
return ret;
}
--
2.34.1