Browse Source

avcodec/libx265: zero the padding bytes in extradata

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
tags/n4.3
James Almer 5 years ago
parent
commit
6ae84e7b03
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavcodec/libx265.c

+ 1
- 0
libavcodec/libx265.c View File

@@ -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;


Loading…
Cancel
Save