1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-29 22:00:58 +02:00

avcodec/bsf/dts2pts: don't zero the node buffers when allocating them

It's unnecessary as the entire struct is written to immediately after it's
allocated.
Restores the behavior prior to fec6a8df3127795f0796f73494df7f27fe354550.

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2024-09-19 23:21:20 -03:00
parent 720ae6b3f7
commit 2eef902d38

View File

@ -396,7 +396,8 @@ static int dts2pts_init(AVBSFContext *ctx)
if (!s->fifo)
return AVERROR(ENOMEM);
s->node_pool = ff_refstruct_pool_alloc(sizeof(DTS2PTSNode), 0);
s->node_pool = ff_refstruct_pool_alloc(sizeof(DTS2PTSNode),
FF_REFSTRUCT_POOL_FLAG_NO_ZEROING);
if (!s->node_pool)
return AVERROR(ENOMEM);