]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/utils.c
Replace all instances of avcodec_alloc_frame() with av_frame_alloc().
[ffmpeg] / libavformat / utils.c
index 6193d32f037b285901f22c125f7c9e99bab15927..377fdd99a0e15fe290aeeafbf4040468956b31cd 100644 (file)
@@ -1928,7 +1928,7 @@ static int try_decode_frame(AVStream *st, AVPacket *avpkt, AVDictionary **option
 {
     const AVCodec *codec;
     int got_picture = 1, ret = 0;
-    AVFrame *frame = avcodec_alloc_frame();
+    AVFrame *frame = av_frame_alloc();
     AVPacket pkt = *avpkt;
 
     if (!frame)