It's unnecessary as the entire struct is written to immediately after it's allocated. Restores the behavior prior to fec6a8df3127795f0796f73494df7f27fe354550.
Showing the changes to libavcodec (1 of 1 file). Show all
Unified · Split
| @@ -396,7 +396,8 @@ static int dts2pts_init(AVBSFContext *ctx) · 395 unmodified lines | |||
| 396 | if (!s->fifo) | 396 | if (!s->fifo) |
| 397 | return AVERROR(ENOMEM); | 397 | return AVERROR(ENOMEM); |
| 398 | 398 | ||
| 399 | s->node_pool = ff_refstruct_pool_alloc(sizeof(DTS2PTSNode), 0); | 399 | s->node_pool = ff_refstruct_pool_alloc(sizeof(DTS2PTSNode), |
| 400 | FF_REFSTRUCT_POOL_FLAG_NO_ZEROING); | ||
| 400 | 401 | ||
| 401 | if (!s->node_pool) | 402 | if (!s->node_pool) |
| 402 | return AVERROR(ENOMEM); | 403 | return AVERROR(ENOMEM); |