changeset 5245:30c093f11b4e libavformat

av_new_packet failing should return ENOMEM, not EIO.
author reimar
date Thu, 01 Oct 2009 16:10:09 +0000
parents 8c0b5c6d0f17
children dc7045701f0e
files raw.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/raw.c	Thu Oct 01 15:40:29 2009 +0000
+++ b/raw.c	Thu Oct 01 16:10:09 2009 +0000
@@ -142,7 +142,7 @@
     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 @@
         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;