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>
pull/389/head
asivery 2 years ago committed by Marton Balint
parent aca7ef78cc
commit 1a4560ce4e
  1. 8
      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 = {

Loading…
Cancel
Save