diff libmpcodecs/vf_spp.c @ 31959:f957f330aa6d

Introduce init_avcodec function to avoid duplicated FFmpeg initializations. Vlad Seryakov, vseryakov gmail com
author diego
date Sat, 04 Sep 2010 08:11:31 +0000
parents a972c1a4a012
children 8fa2f43cb760
line wrap: on
line diff
--- a/libmpcodecs/vf_spp.c	Sat Sep 04 00:20:08 2010 +0000
+++ b/libmpcodecs/vf_spp.c	Sat Sep 04 08:11:31 2010 +0000
@@ -49,6 +49,7 @@
 #include "img_format.h"
 #include "mp_image.h"
 #include "vf.h"
+#include "vd_ffmpeg.h"
 #include "libvo/fastmemcpy.h"
 
 #define XMIN(a,b) ((a) < (b) ? (a) : (b))
@@ -575,7 +576,7 @@
     vf->priv=malloc(sizeof(struct vf_priv_s));
     memset(vf->priv, 0, sizeof(struct vf_priv_s));
 
-    avcodec_init();
+    init_avcodec();
 
     vf->priv->avctx= avcodec_alloc_context();
     dsputil_init(&vf->priv->dsp, vf->priv->avctx);