[FFmpeg-cvslog] lavc/cbs_h2645: Use av_realloc instead of av_malloc
Thierry Foucu
git at videolan.org
Wed Aug 28 22:58:16 EEST 2019
ffmpeg | branch: master | Thierry Foucu <tfoucu at gmail.com> | Mon Aug 26 13:50:40 2019 -0700| [a80fdbcf13919d1280278e71c4ae29e760fb82ab] | committer: Carl Eugen Hoyos
lavc/cbs_h2645: Use av_realloc instead of av_malloc
Follow the description of av_realloc, the memory needs to be allocated
by av_realloc.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a80fdbcf13919d1280278e71c4ae29e760fb82ab
---
libavcodec/cbs_h2645.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/cbs_h2645.c b/libavcodec/cbs_h2645.c
index 69ea6dc6bb..8da8421e47 100644
--- a/libavcodec/cbs_h2645.c
+++ b/libavcodec/cbs_h2645.c
@@ -1457,7 +1457,7 @@ static int cbs_h2645_assemble_fragment(CodedBitstreamContext *ctx,
max_size += 3 + frag->units[i].data_size * 3 / 2;
}
- data = av_malloc(max_size + AV_INPUT_BUFFER_PADDING_SIZE);
+ data = av_realloc(NULL, max_size + AV_INPUT_BUFFER_PADDING_SIZE);
if (!data)
return AVERROR(ENOMEM);
More information about the ffmpeg-cvslog
mailing list