[MPlayer-cvslog] r36867 - trunk/libmpcodecs/ad_ffmpeg.c

reimar subversion at mplayerhq.hu
Sun Feb 16 17:30:06 CET 2014


Author: reimar
Date: Sun Feb 16 17:30:05 2014
New Revision: 36867

Log:
ad_ffmpeg: avoid deprecated avcodec_alloc_frame.

Modified:
   trunk/libmpcodecs/ad_ffmpeg.c

Modified: trunk/libmpcodecs/ad_ffmpeg.c
==============================================================================
--- trunk/libmpcodecs/ad_ffmpeg.c	Sun Feb 16 17:30:05 2014	(r36866)
+++ trunk/libmpcodecs/ad_ffmpeg.c	Sun Feb 16 17:30:05 2014	(r36867)
@@ -313,7 +313,7 @@ static int decode_audio(sh_audio_t *sh_a
 {
     unsigned char *start=NULL;
     int y,len=-1, got_frame;
-    AVFrame *frame = avcodec_alloc_frame();
+    AVFrame *frame = av_frame_alloc();
 
     if (!frame)
         return AVERROR(ENOMEM);
@@ -376,6 +376,6 @@ static int decode_audio(sh_audio_t *sh_a
             break;
     }
 
-  av_free(frame);
+  av_frame_free(&frame);
   return len;
 }


More information about the MPlayer-cvslog mailing list