[MPlayer-cvslog] r37445 - in trunk/libmpcodecs: ve_lavc.c vf_lavc.c vf_mcdeint.c vf_uspp.c

rtogni subversion at mplayerhq.hu
Sat Aug 8 22:25:14 CEST 2015


Author: rtogni
Date: Sat Aug  8 22:25:14 2015
New Revision: 37445

Log:
Replace deprecated avcodec_alloc_frame() with av_frame_alloc()

Modified:
   trunk/libmpcodecs/ve_lavc.c
   trunk/libmpcodecs/vf_lavc.c
   trunk/libmpcodecs/vf_mcdeint.c
   trunk/libmpcodecs/vf_uspp.c

Modified: trunk/libmpcodecs/ve_lavc.c
==============================================================================
--- trunk/libmpcodecs/ve_lavc.c	Sun Aug  2 19:29:05 2015	(r37444)
+++ trunk/libmpcodecs/ve_lavc.c	Sat Aug  8 22:25:14 2015	(r37445)
@@ -987,7 +987,7 @@ static int vf_open(vf_instance_t *vf, ch
 	return 0;
     }
 
-    vf->priv->pic = avcodec_alloc_frame();
+    vf->priv->pic = av_frame_alloc();
     vf->priv->context = avcodec_alloc_context3(vf->priv->codec);
     vf->priv->context->codec_id = vf->priv->codec->id;
 

Modified: trunk/libmpcodecs/vf_lavc.c
==============================================================================
--- trunk/libmpcodecs/vf_lavc.c	Sun Aug  2 19:29:05 2015	(r37444)
+++ trunk/libmpcodecs/vf_lavc.c	Sat Aug  8 22:25:14 2015	(r37445)
@@ -144,7 +144,7 @@ static int vf_open(vf_instance_t *vf, ch
     }
 
     vf->priv->context=avcodec_alloc_context3(vf->priv->codec);
-    vf->priv->pic = avcodec_alloc_frame();
+    vf->priv->pic = av_frame_alloc();
 
     // TODO: parse args ->
     if(args) sscanf(args, "%d:%f", &p_quality, &p_fps);

Modified: trunk/libmpcodecs/vf_mcdeint.c
==============================================================================
--- trunk/libmpcodecs/vf_mcdeint.c	Sun Aug  2 19:29:05 2015	(r37444)
+++ trunk/libmpcodecs/vf_mcdeint.c	Sat Aug  8 22:25:14 2015	(r37445)
@@ -251,7 +251,7 @@ static int config(struct vf_instance *vf
             av_dict_free(&opts);
 
         }
-        vf->priv->frame= avcodec_alloc_frame();
+        vf->priv->frame= av_frame_alloc();
 
         vf->priv->outbuf_size= width*height*10;
         vf->priv->outbuf= malloc(vf->priv->outbuf_size);

Modified: trunk/libmpcodecs/vf_uspp.c
==============================================================================
--- trunk/libmpcodecs/vf_uspp.c	Sun Aug  2 19:29:05 2015	(r37444)
+++ trunk/libmpcodecs/vf_uspp.c	Sat Aug  8 22:25:14 2015	(r37445)
@@ -244,8 +244,8 @@ static int config(struct vf_instance *vf
             av_dict_free(&opts);
             assert(avctx_enc->codec);
         }
-        vf->priv->frame= avcodec_alloc_frame();
-        vf->priv->frame_dec= avcodec_alloc_frame();
+        vf->priv->frame= av_frame_alloc();
+        vf->priv->frame_dec= av_frame_alloc();
 
         vf->priv->outbuf_size= (width + BLOCK)*(height + BLOCK)*10;
         vf->priv->outbuf= malloc(vf->priv->outbuf_size);


More information about the MPlayer-cvslog mailing list