summaryrefslogtreecommitdiff
path: root/libavcodec/libvpxenc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-03-01 00:11:53 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-03-01 00:11:53 +0100
commit1d178710b429cedaa98bf971c16c8e32a94223f4 (patch)
treed7c2bc52d855d0cdc0024a9615afb08fdd10112f /libavcodec/libvpxenc.c
parent3c3a8c14897978240ad6ab7762547878d5fb24cd (diff)
libvpxenc: dont redundantly zero fields, the whole context is zeroed on init
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/libvpxenc.c')
-rw-r--r--libavcodec/libvpxenc.c3
1 files changed, 0 insertions, 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");