[FFmpeg-cvslog] lavf/hevc: pad the RBSP buffer as required by the bistream reader
Anton Khirnov
git at videolan.org
Thu Jul 9 04:02:39 CEST 2015
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Tue Jun 30 20:28:23 2015 +0200| [0e7c0ec344f542e68e3cc9680e8d41dffeffdb4e] | committer: Anton Khirnov
lavf/hevc: pad the RBSP buffer as required by the bistream reader
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0e7c0ec344f542e68e3cc9680e8d41dffeffdb4e
---
libavformat/hevc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/hevc.c b/libavformat/hevc.c
index 4d43b6a..26db3b1 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;
More information about the ffmpeg-cvslog
mailing list