Commit 136a663c authored by Michael Niedermayer's avatar Michael Niedermayer

bit: use AVERROR_INVALIDDATA

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 9a27dc1c
...@@ -59,7 +59,7 @@ static int read_packet(AVFormatContext *s, ...@@ -59,7 +59,7 @@ static int read_packet(AVFormatContext *s,
get_le16(pb); // sync word get_le16(pb); // sync word
packet_size = get_le16(pb) / 8; packet_size = get_le16(pb) / 8;
if(packet_size > MAX_FRAME_SIZE) 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)); ret = get_buffer(pb, (uint8_t*)buf, (8 * packet_size) * sizeof(uint16_t));
if(ret<0) if(ret<0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment