diff options
author | Himangi Saraogi <himangi774@gmail.com> | 2015-02-11 03:37:40 +0530 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-02-17 12:18:10 -0500 |
commit | 18f4fa251b0eb36392839f5bf6180f280dc04d8d (patch) | |
tree | 2a593667426c3b17c144bbc1fc3673119614c3af /libavcodec | |
parent | fe0f4e56577a2dbd373bb50b0ae2d49e69d822fc (diff) | |
download | ffmpeg-streaming-18f4fa251b0eb36392839f5bf6180f280dc04d8d.zip ffmpeg-streaming-18f4fa251b0eb36392839f5bf6180f280dc04d8d.tar.gz |
aac_adtstoasc_bsf: Check extradata memory allocation
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/aac_adtstoasc_bsf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/aac_adtstoasc_bsf.c b/libavcodec/aac_adtstoasc_bsf.c index 733b08d..bedaa49 100644 --- a/libavcodec/aac_adtstoasc_bsf.c +++ b/libavcodec/aac_adtstoasc_bsf.c @@ -89,6 +89,8 @@ static int aac_adtstoasc_filter(AVBitStreamFilterContext *bsfc, } 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); |