[FFmpeg-cvslog] bit: use AVERROR_INVALIDDATA

Michael Niedermayer git at videolan.org
Sun Sep 25 13:25:19 CEST 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Sep 25 11:21:01 2011 +0200| [136a663cebc6d37f925c469d319048beb60d66c0] | committer: Michael Niedermayer

bit: use AVERROR_INVALIDDATA

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=136a663cebc6d37f925c469d319048beb60d66c0
---

 libavformat/bit.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/bit.c b/libavformat/bit.c
index d68616e..41a74b7 100644
--- a/libavformat/bit.c
+++ b/libavformat/bit.c
@@ -59,7 +59,7 @@ static int read_packet(AVFormatContext *s,
     get_le16(pb); // sync word
     packet_size = get_le16(pb) / 8;
     if(packet_size > MAX_FRAME_SIZE)
-        return AVERROR(EIO);
+        return AVERROR_INVALIDDATA;
 
     ret = get_buffer(pb, (uint8_t*)buf, (8 * packet_size) * sizeof(uint16_t));
     if(ret<0)



More information about the ffmpeg-cvslog mailing list