Commit 879603fa authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/latmenc: Add assert to avoid coverity warning

Fixes CID1322323
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 8d2b4b8c
......@@ -124,7 +124,8 @@ static void latm_write_frame_header(AVFormatContext *s, PutBitContext *bs)
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);
}
......
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