[FFmpeg-cvslog] lavfi/vf_fps: use av_fifo_alloc_array

Lukasz Marek git at videolan.org
Tue May 20 00:35:47 CEST 2014


ffmpeg | branch: master | Lukasz Marek <lukasz.m.luki2 at gmail.com> | Sun May 11 05:20:44 2014 +0200| [ce051ceefc7040fe0af311e4ee5d702d4b402dbf] | committer: Lukasz Marek

lavfi/vf_fps: use av_fifo_alloc_array

Signed-off-by: Lukasz Marek <lukasz.m.luki2 at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ce051ceefc7040fe0af311e4ee5d702d4b402dbf
---

 libavfilter/vf_fps.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vf_fps.c b/libavfilter/vf_fps.c
index ad7297a..a38633d 100644
--- a/libavfilter/vf_fps.c
+++ b/libavfilter/vf_fps.c
@@ -79,7 +79,7 @@ static av_cold int init(AVFilterContext *ctx)
 {
     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);
 
     s->first_pts    = AV_NOPTS_VALUE;



More information about the ffmpeg-cvslog mailing list