diff mbox series

[FFmpeg-devel] avcodec/libx265: zero the padding bytes in extradata

Message ID 20200118002932.7846-1-jamrial@gmail.com
State Accepted
Headers show
Series [FFmpeg-devel] avcodec/libx265: zero the padding bytes in extradata | expand

Checks

Context Check Description
andriy/ffmpeg-patchwork success Make fate finished

Commit Message

James Almer Jan. 18, 2020, 12:29 a.m. UTC
Signed-off-by: James Almer <jamrial@gmail.com>
---
 libavcodec/libx265.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Michael Niedermayer Jan. 18, 2020, 2:45 p.m. UTC | #1
On Fri, Jan 17, 2020 at 09:29:32PM -0300, James Almer wrote:
> Signed-off-by: James Almer <jamrial@gmail.com>
> ---
>  libavcodec/libx265.c | 1 +
>  1 file changed, 1 insertion(+)

LGTM

thx

[...]
James Almer Jan. 18, 2020, 3:47 p.m. UTC | #2
On 1/18/2020 11:45 AM, Michael Niedermayer wrote:
> On Fri, Jan 17, 2020 at 09:29:32PM -0300, James Almer wrote:
>> Signed-off-by: James Almer <jamrial@gmail.com>
>> ---
>>  libavcodec/libx265.c | 1 +
>>  1 file changed, 1 insertion(+)
> 
> LGTM
> 
> thx

Pushed.
diff mbox series

Patch

diff --git a/libavcodec/libx265.c b/libavcodec/libx265.c
index 9e4711e50b..e42c7b4d85 100644
--- a/libavcodec/libx265.c
+++ b/libavcodec/libx265.c
@@ -400,6 +400,7 @@  static av_cold int libx265_encode_init(AVCodecContext *avctx)
         }
 
         memcpy(avctx->extradata, nal[0].payload, avctx->extradata_size);
+        memset(avctx->extradata + avctx->extradata_size, 0, AV_INPUT_BUFFER_PADDING_SIZE);
     }
 
     return 0;