OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
681c180
)
av_new_packet failing should return ENOMEM, not EIO.
author
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Thu, 1 Oct 2009 16:10:09 +0000
(16:10 +0000)
committer
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Thu, 1 Oct 2009 16:10:09 +0000
(16:10 +0000)
Originally committed as revision 20126 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/raw.c
patch
|
blob
|
history
diff --git
a/libavformat/raw.c
b/libavformat/raw.c
index
e7cfd7c
..
dc93083
100644
(file)
--- a/
libavformat/raw.c
+++ b/
libavformat/raw.c
@@
-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(E
IO
);
+ return AVERROR(E
NOMEM
);
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(E
IO
);
+ return AVERROR(E
NOMEM
);
pkt->pos = url_ftell(s->pb);
pkt->stream_index = 0;