mirror of
https://github.com/librempeg/librempeg
synced 2024-11-23 11:39:47 +00:00
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.
This commit is contained in:
parent
ffd65c8862
commit
a80fdbcf13
@ -1457,7 +1457,7 @@ static int cbs_h2645_assemble_fragment(CodedBitstreamContext *ctx,
|
|||||||
max_size += 3 + frag->units[i].data_size * 3 / 2;
|
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)
|
if (!data)
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user