Browse Source

h264_mp4toannexb_bsf: return a padded buffer

The code using the returned buffer might expect it to be
FF_INPUT_BUFFER_PADDING_SIZE padded as any other avpacket.
tags/n2.0
Luca Barbato 12 years ago
parent
commit
9e80eda26d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/h264_mp4toannexb_bsf.c

+ 1
- 1
libavcodec/h264_mp4toannexb_bsf.c View File

@@ -40,7 +40,7 @@ static int alloc_and_copy(uint8_t **poutbuf, int *poutbuf_size,
void *tmp;

*poutbuf_size += sps_pps_size + in_size + nal_header_size;
tmp = av_realloc(*poutbuf, *poutbuf_size);
tmp = av_realloc(*poutbuf, *poutbuf_size + FF_INPUT_BUFFER_PADDING_SIZE);
if (!tmp)
return AVERROR(ENOMEM);
*poutbuf = tmp;


Loading…
Cancel
Save