diff options
Diffstat (limited to 'libavcodec/v308enc.c')
-rw-r--r-- | libavcodec/v308enc.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/libavcodec/v308enc.c b/libavcodec/v308enc.c index 408784b044..0e5ab822c0 100644 --- a/libavcodec/v308enc.c +++ b/libavcodec/v308enc.c @@ -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; } |