Browse Source

libx264: Make sure the extradata are padded

tags/n3.0
Luca Barbato 9 years ago
parent
commit
1ec72c6c68
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/libx264.c

+ 1
- 1
libavcodec/libx264.c View File

@@ -589,7 +589,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
int nnal, s, i;

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)
return AVERROR(ENOMEM);



Loading…
Cancel
Save