diff options
author | asivery <asivery@protonmail.com> | 2022-09-27 00:13:10 +0200 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2023-03-09 21:17:15 +0100 |
commit | 1a4560ce4e957f16fbfce9d5e563f3c06ded37d1 (patch) | |
tree | 90619aff8bfd7fc069dc6365a3b3f4b7e6f9bfcd | |
parent | aca7ef78cca7fbfe02cbaf51e3349e831a4a7dd6 (diff) | |
download | ffmpeg-1a4560ce4e957f16fbfce9d5e563f3c06ded37d1.tar.gz |
avformat/aea: make the AEA demuxer return EOF at the end of file instead of EIO
Signed-off-by: asivery <asivery@protonmail.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
-rw-r--r-- | libavformat/aea.c | 8 |
1 files changed, 1 insertions, 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 = { |