mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-06-16 04:32:47 +02:00
av_new_packet failing should return ENOMEM, not EIO.
Originally committed as revision 20126 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
+2
-2
@@ -142,7 +142,7 @@ int ff_raw_read_partial_packet(AVFormatContext *s, AVPacket *pkt)
|
||||
size = RAW_PACKET_SIZE;
|
||||
|
||||
if (av_new_packet(pkt, size) < 0)
|
||||
return AVERROR(EIO);
|
||||
return AVERROR(ENOMEM);
|
||||
|
||||
pkt->pos= url_ftell(s->pb);
|
||||
pkt->stream_index = 0;
|
||||
@@ -206,7 +206,7 @@ static int ingenient_read_packet(AVFormatContext *s, AVPacket *pkt)
|
||||
size, w, h, unk1, unk2);
|
||||
|
||||
if (av_new_packet(pkt, size) < 0)
|
||||
return AVERROR(EIO);
|
||||
return AVERROR(ENOMEM);
|
||||
|
||||
pkt->pos = url_ftell(s->pb);
|
||||
pkt->stream_index = 0;
|
||||
|
||||
Reference in New Issue
Block a user