From 1d178710b429cedaa98bf971c16c8e32a94223f4 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 1 Mar 2013 00:11:53 +0100 Subject: [PATCH] libvpxenc: dont redundantly zero fields, the whole context is zeroed on init Signed-off-by: Michael Niedermayer --- libavcodec/libvpxenc.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c index bbd566d60c..4f1adb85c4 100644 --- a/libavcodec/libvpxenc.c +++ b/libavcodec/libvpxenc.c @@ -404,9 +404,6 @@ static av_cold int vpx_init(AVCodecContext *avctx, vpx_img_wrap(&ctx->rawimg, VPX_IMG_FMT_I420, avctx->width, avctx->height, 1, (unsigned char*)1); - ctx->have_sse = 0; - ctx->frame_number = 0; - avctx->coded_frame = avcodec_alloc_frame(); if (!avctx->coded_frame) { av_log(avctx, AV_LOG_ERROR, "Error allocating coded frame\n");