# HG changeset patch # User faust3 # Date 1254563045 0 # Node ID 8eb51d3eccdfccaa03a000ee61c893be9ab5a644 # Parent 997bdf43a4edd03269d054f4b10fcd52b3c25a87 return AVERROR_INVALIDDATA when the bitstream could not be decoded diff -r 997bdf43a4ed -r 8eb51d3eccdf wmaprodec.c --- 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; } /**