mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
return AVERROR_INVALIDDATA when the bitstream could not be decoded
Originally committed as revision 20154 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
dae0d1e21c
commit
037396d099
@ -1528,7 +1528,7 @@ static int decode_packet(AVCodecContext *avctx,
|
||||
*data_size = (int8_t *)s->samples - (int8_t *)data;
|
||||
s->packet_offset = get_bits_count(gb) & 7;
|
||||
|
||||
return get_bits_count(gb) >> 3;
|
||||
return (s->packet_loss) ? AVERROR_INVALIDDATA : get_bits_count(gb) >> 3;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user