mirror of https://git.ffmpeg.org/ffmpeg.git
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 fec6a8df31
.
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
720ae6b3f7
commit
2eef902d38
|
@ -396,7 +396,8 @@ static int dts2pts_init(AVBSFContext *ctx)
|
||||||
if (!s->fifo)
|
if (!s->fifo)
|
||||||
return AVERROR(ENOMEM);
|
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)
|
if (!s->node_pool)
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
|
|
Loading…
Reference in New Issue