You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
mlpdec: Fix reading state with 0 bit elements.
This fixes an assertion failure Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -635,7 +635,7 @@ static int read_filter_params(MLPDecodeContext *m, GetBitContext *gbp,
|
|||||||
/* TODO: Check validity of state data. */
|
/* TODO: Check validity of state data. */
|
||||||
|
|
||||||
for (i = 0; i < order; i++)
|
for (i = 0; i < order; i++)
|
||||||
fp->state[i] = get_sbits(gbp, state_bits) << state_shift;
|
fp->state[i] = state_bits ? get_sbits(gbp, state_bits) << state_shift : 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user