changeset 36771:a706bf2ed700

ad_ffmpeg: avoid deprecated avcodec_alloc_frame.
author reimar
date Sun, 16 Feb 2014 16:30:05 +0000
parents ee000da6fa82
children 0da6c7ff95d2
files libmpcodecs/ad_ffmpeg.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ad_ffmpeg.c	Sun Feb 16 16:30:05 2014 +0000
+++ b/libmpcodecs/ad_ffmpeg.c	Sun Feb 16 16:30:05 2014 +0000
@@ -313,7 +313,7 @@
 {
     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 @@
             break;
     }
 
-  av_free(frame);
+  av_frame_free(&frame);
   return len;
 }