mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/libx265: zero the padding bytes in extradata
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
b9606064c4
commit
6ae84e7b03
|
@ -400,6 +400,7 @@ static av_cold int libx265_encode_init(AVCodecContext *avctx)
|
||||||
}
|
}
|
||||||
|
|
||||||
memcpy(avctx->extradata, nal[0].payload, avctx->extradata_size);
|
memcpy(avctx->extradata, nal[0].payload, avctx->extradata_size);
|
||||||
|
memset(avctx->extradata + avctx->extradata_size, 0, AV_INPUT_BUFFER_PADDING_SIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue