summaryrefslogtreecommitdiff
path: root/libavformat/hevc.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2015-06-30 20:28:23 +0200
committerAnton Khirnov <anton@khirnov.net>2015-07-08 23:36:10 +0200
commit0e7c0ec344f542e68e3cc9680e8d41dffeffdb4e (patch)
treeaa725bac98fba49d2ac7235b4076e18a12b40b5a /libavformat/hevc.c
parent1761ab838c75223a6b97d8c0720d09275374c53d (diff)
lavf/hevc: pad the RBSP buffer as required by the bistream reader
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 4d43b6a083..26db3b101f 100644
--- a/libavformat/hevc.c
+++ b/libavformat/hevc.c
@@ -636,7 +636,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;