summaryrefslogtreecommitdiffstats
path: root/libavcodec/yuv4enc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/yuv4enc.c')
-rw-r--r--libavcodec/yuv4enc.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/libavcodec/yuv4enc.c b/libavcodec/yuv4enc.c
index 5ce4846..cc9ecbb 100644
--- a/libavcodec/yuv4enc.c
+++ b/libavcodec/yuv4enc.c
@@ -25,13 +25,6 @@
static av_cold int yuv4_encode_init(AVCodecContext *avctx)
{
- 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;
}
@@ -74,8 +67,6 @@ static int yuv4_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
static av_cold int yuv4_encode_close(AVCodecContext *avctx)
{
- av_frame_free(&avctx->coded_frame);
-
return 0;
}
OpenPOWER on IntegriCloud