Mercurial > libavcodec.hg
comparison wmaprodec.c @ 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 | ab687351bfef |
children | c8edd2033038 |
comparison
equal
deleted
inserted
replaced
10351:997bdf43a4ed | 10352:8eb51d3eccdf |
---|---|
1526 } | 1526 } |
1527 | 1527 |
1528 *data_size = (int8_t *)s->samples - (int8_t *)data; | 1528 *data_size = (int8_t *)s->samples - (int8_t *)data; |
1529 s->packet_offset = get_bits_count(gb) & 7; | 1529 s->packet_offset = get_bits_count(gb) & 7; |
1530 | 1530 |
1531 return get_bits_count(gb) >> 3; | 1531 return (s->packet_loss) ? AVERROR_INVALIDDATA : get_bits_count(gb) >> 3; |
1532 } | 1532 } |
1533 | 1533 |
1534 /** | 1534 /** |
1535 *@brief Clear decoder buffers (for seeking). | 1535 *@brief Clear decoder buffers (for seeking). |
1536 *@param avctx codec context | 1536 *@param avctx codec context |