Skip to content

Commit

Permalink
Merge commit '03eb55741427c6608f63972c105e565ca0ba4f15'
Browse files Browse the repository at this point in the history
* commit '03eb55741427c6608f63972c105e565ca0ba4f15':
  wmv2enc: Check memory allocation

Conflicts:
	libavcodec/wmv2enc.c

See: 6e8fe44
Merged-by: Michael Niedermayer <[email protected]>
  • Loading branch information
michaelni committed Jul 27, 2015
2 parents c707437 + 03eb557 commit 59b0094
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libavcodec/wmv2enc.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ static av_cold int wmv2_encode_init(AVCodecContext *avctx)
avctx->extradata = av_mallocz(avctx->extradata_size + FF_INPUT_BUFFER_PADDING_SIZE);
if (!avctx->extradata)
return AVERROR(ENOMEM);

encode_ext_header(w);

return 0;
Expand Down

0 comments on commit 59b0094

Please sign in to comment.