Commit 7110b024 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'e524f373'

* commit 'e524f373':
  asv: Check memory allocation
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents e7a65142 e524f373
......@@ -333,6 +333,8 @@ static av_cold int encode_init(AVCodecContext *avctx)
avctx->global_quality / 2) / avctx->global_quality;
avctx->extradata = av_mallocz(8);
if (!avctx->extradata)
return AVERROR(ENOMEM);
avctx->extradata_size = 8;
((uint32_t *) avctx->extradata)[0] = av_le2ne32(a->inv_qscale);
((uint32_t *) avctx->extradata)[1] = av_le2ne32(AV_RL32("ASUS"));
......
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