History

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.

James Almer committed 2 years ago

Commit 2eef9021 parent 720ae6b1 file · +2 −1Browse files

Unified · Split

libavcodec/bsf/dts2pts.c+2−1
@@ -396,7 +396,8 @@ static int dts2pts_init(AVBSFContext *ctx) · 395 unmodified lines
396396 if (!s->fifo)
397397 return AVERROR(ENOMEM);
398398
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);
400401
401402 if (!s->node_pool)
402403 return AVERROR(ENOMEM);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t