You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-16 22:42:38 +02:00
libx264: Make sure the extradata are padded
This commit is contained in:
@ -589,7 +589,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
|
|||||||
int nnal, s, i;
|
int nnal, s, i;
|
||||||
|
|
||||||
s = x264_encoder_headers(x4->enc, &nal, &nnal);
|
s = x264_encoder_headers(x4->enc, &nal, &nnal);
|
||||||
avctx->extradata = p = av_malloc(s);
|
avctx->extradata = p = av_mallocz(s + AV_INPUT_BUFFER_PADDING_SIZE);
|
||||||
if (!p)
|
if (!p)
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user