mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-04 14:22:12 +00:00
avformat/latmenc: Add assert to avoid coverity warning
Fixes CID1322323 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
8d2b4b8c82
commit
879603fa3f
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user