Commit 5c44c2de authored by Michael Niedermayer's avatar Michael Niedermayer

mlp_parser: use av_assert

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent f0a3259f
...@@ -129,7 +129,7 @@ int ff_mlp_read_major_sync(void *log, MLPHeaderInfo *mh, GetBitContext *gb) ...@@ -129,7 +129,7 @@ int ff_mlp_read_major_sync(void *log, MLPHeaderInfo *mh, GetBitContext *gb)
int ratebits; int ratebits;
uint16_t checksum; uint16_t checksum;
assert(get_bits_count(gb) == 0); av_assert1(get_bits_count(gb) == 0);
if (gb->size_in_bits < 28 << 3) { if (gb->size_in_bits < 28 << 3) {
av_log(log, AV_LOG_ERROR, "packet too short, unable to read major sync\n"); av_log(log, AV_LOG_ERROR, "packet too short, unable to read major sync\n");
......
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