Fixes CID1322323
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
if (!ctx->channel_conf) {
GetBitContext gb;
if (!ctx->channel_conf) {
GetBitContext gb;
- init_get_bits8(&gb, avctx->extradata, avctx->extradata_size);
+ int ret = init_get_bits8(&gb, avctx->extradata, avctx->extradata_size);
+ av_assert0(ret >= 0); // extradata size has been checked already, so this should not fail
skip_bits_long(&gb, ctx->off + 3);
avpriv_copy_pce_data(bs, &gb);
}
skip_bits_long(&gb, ctx->off + 3);
avpriv_copy_pce_data(bs, &gb);
}