[FFmpeg-cvslog] avformat/aea: make the AEA demuxer return EOF at the end of file instead of EIO

asivery git at videolan.org
Thu Mar 9 23:52:06 EET 2023


ffmpeg | branch: master | asivery <asivery at protonmail.com> | Tue Sep 27 00:13:10 2022 +0200| [1a4560ce4e957f16fbfce9d5e563f3c06ded37d1] | committer: Marton Balint

avformat/aea: make the AEA demuxer return EOF at the end of file instead of EIO

Signed-off-by: asivery <asivery at protonmail.com>
Signed-off-by: Marton Balint <cus at passwd.hu>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1a4560ce4e957f16fbfce9d5e563f3c06ded37d1
---

 libavformat/aea.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/libavformat/aea.c b/libavformat/aea.c
index f4b39e4f9e..d16217381b 100644
--- a/libavformat/aea.c
+++ b/libavformat/aea.c
@@ -90,13 +90,7 @@ static int aea_read_header(AVFormatContext *s)
 
 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);
-
-    return ret;
+    return av_get_packet(s->pb, pkt, s->streams[0]->codecpar->block_align);
 }
 
 const AVInputFormat ff_aea_demuxer = {



More information about the ffmpeg-cvslog mailing list