[FFmpeg-cvslog] libvpxenc: dont redundantly zero fields, the whole context is zeroed on init
Michael Niedermayer
git at videolan.org
Fri Mar 1 00:57:43 CET 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Mar 1 00:11:53 2013 +0100| [1d178710b429cedaa98bf971c16c8e32a94223f4] | committer: Michael Niedermayer
libvpxenc: dont redundantly zero fields, the whole context is zeroed on init
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1d178710b429cedaa98bf971c16c8e32a94223f4
---
libavcodec/libvpxenc.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c
index bbd566d..4f1adb8 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");
More information about the ffmpeg-cvslog
mailing list