mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-28 20:53:54 +02:00
Merge commit '18f4fa251b0eb36392839f5bf6180f280dc04d8d'
* commit '18f4fa251b0eb36392839f5bf6180f280dc04d8d': aac_adtstoasc_bsf: Check extradata memory allocation Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
38e867f6c0
@ -90,6 +90,8 @@ static int aac_adtstoasc_filter(AVBitStreamFilterContext *bsfc,
|
||||
av_free(avctx->extradata);
|
||||
avctx->extradata_size = 2 + pce_size;
|
||||
avctx->extradata = av_mallocz(avctx->extradata_size + FF_INPUT_BUFFER_PADDING_SIZE);
|
||||
if (!avctx->extradata)
|
||||
return AVERROR(ENOMEM);
|
||||
|
||||
init_put_bits(&pb, avctx->extradata, avctx->extradata_size);
|
||||
put_bits(&pb, 5, hdr.object_type);
|
||||
|
Loading…
Reference in New Issue
Block a user