lavf/hevc: pad the RBSP buffer as required by the bistream reader
authorAnton Khirnov <anton@khirnov.net>
Tue, 30 Jun 2015 18:28:23 +0000 (20:28 +0200)
committerAnton Khirnov <anton@khirnov.net>
Wed, 8 Jul 2015 21:36:10 +0000 (23:36 +0200)
libavformat/hevc.c

index 4d43b6a..26db3b1 100644 (file)
@@ -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;