Mercurial > libavcodec.hg
changeset 10352:8eb51d3eccdf libavcodec
return AVERROR_INVALIDDATA when the bitstream could not be decoded
author | faust3 |
---|---|
date | Sat, 03 Oct 2009 09:44:05 +0000 |
parents | 997bdf43a4ed |
children | c8edd2033038 |
files | wmaprodec.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/wmaprodec.c Sat Oct 03 05:18:32 2009 +0000 +++ b/wmaprodec.c Sat Oct 03 09:44:05 2009 +0000 @@ -1528,7 +1528,7 @@ *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; } /**