]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/v308enc.c
Merge commit 'aed7715b8fa295980c221f1cd095d42cd3bd74a6'
[ffmpeg] / libavcodec / v308enc.c
index 408784b0440877c93f01509de2adbe6d599f72d6..0e5ab822c040baa0ce33c854d809ec72e0c64202 100644 (file)
@@ -31,13 +31,6 @@ static av_cold int v308_encode_init(AVCodecContext *avctx)
         return AVERROR_INVALIDDATA;
     }
 
-    avctx->coded_frame = av_frame_alloc();
-
-    if (!avctx->coded_frame) {
-        av_log(avctx, AV_LOG_ERROR, "Could not allocate frame.\n");
-        return AVERROR(ENOMEM);
-    }
-
     return 0;
 }
 
@@ -77,8 +70,6 @@ static int v308_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
 
 static av_cold int v308_encode_close(AVCodecContext *avctx)
 {
-    av_frame_free(&avctx->coded_frame);
-
     return 0;
 }