aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/hevc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-07-09 03:53:51 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-07-09 03:54:31 +0200
commitb457da4ce27c0c6fa2342c9641a89d37801553bf (patch)
tree66e78ca1c9fd99c4be3982200fc152c7228f7b80 /libavformat/hevc.c
parent4f5c2e651a95b950f6a3fb36f2342cbc32515f17 (diff)
parent0e7c0ec344f542e68e3cc9680e8d41dffeffdb4e (diff)
downloadffmpeg-b457da4ce27c0c6fa2342c9641a89d37801553bf.tar.gz
Merge commit '0e7c0ec344f542e68e3cc9680e8d41dffeffdb4e'
* commit '0e7c0ec344f542e68e3cc9680e8d41dffeffdb4e': lavf/hevc: pad the RBSP buffer as required by the bistream reader Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/hevc.c')
-rw-r--r--libavformat/hevc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/hevc.c b/libavformat/hevc.c
index 643b71596a..a9542ffd3d 100644
--- a/libavformat/hevc.c
+++ b/libavformat/hevc.c
@@ -644,7 +644,7 @@ static uint8_t *nal_unit_extract_rbsp(const uint8_t *src, uint32_t src_len,
uint8_t *dst;
uint32_t i, len;
- dst = av_malloc(src_len);
+ dst = av_malloc(src_len + FF_INPUT_BUFFER_PADDING_SIZE);
if (!dst)
return NULL;