mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
lavfi/vf_fps: use av_fifo_alloc_array
Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
This commit is contained in:
parent
d15db8e413
commit
ce051ceefc
@ -79,7 +79,7 @@ static av_cold int init(AVFilterContext *ctx)
|
|||||||
{
|
{
|
||||||
FPSContext *s = ctx->priv;
|
FPSContext *s = ctx->priv;
|
||||||
|
|
||||||
if (!(s->fifo = av_fifo_alloc(2*sizeof(AVFrame*))))
|
if (!(s->fifo = av_fifo_alloc_array(2, sizeof(AVFrame*))))
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
|
|
||||||
s->first_pts = AV_NOPTS_VALUE;
|
s->first_pts = AV_NOPTS_VALUE;
|
||||||
|
Loading…
Reference in New Issue
Block a user