mlpdec: dont leave a invalid huff_lsb in the context.
Fix assertion failure
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 4aed4f5846
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -720,6 +720,7 @@ static int read_channel_params(MLPDecodeContext *m, unsigned int substr,
|
|||||||
|
|
||||||
if (cp->huff_lsbs > 24) {
|
if (cp->huff_lsbs > 24) {
|
||||||
av_log(m->avctx, AV_LOG_ERROR, "Invalid huff_lsbs.\n");
|
av_log(m->avctx, AV_LOG_ERROR, "Invalid huff_lsbs.\n");
|
||||||
|
cp->huff_lsbs = 0;
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user