diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-09-25 11:21:01 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-09-25 12:29:20 +0200 |
commit | 136a663cebc6d37f925c469d319048beb60d66c0 (patch) | |
tree | e91763772fa6b21202ed50340d73354cae48391d | |
parent | 9a27dc1cbda2bc6482db461ca99149dfd79fb327 (diff) | |
download | ffmpeg-136a663cebc6d37f925c469d319048beb60d66c0.tar.gz |
bit: use AVERROR_INVALIDDATA
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/bit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/bit.c b/libavformat/bit.c index d68616e732..41a74b7688 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) |