提交 c67031e7 编写于 作者: R Reimar Döffinger

av_new_packet failing should return ENOMEM, not EIO.

Originally committed as revision 20126 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 681c180d
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册