From a5a0dedf111d6fd4fc41c3e82287f434c8f6c4d3 Mon Sep 17 00:00:00 2001 From: Wolfram Gloger Date: Mon, 20 Aug 2012 13:17:35 +0200 Subject: [PATCH] Fix duplicate packet init introduced by 7f9aaa4 Signed-off-by: Michael Niedermayer --- libavcodec/mpegvideo_enc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c index bf144affe9..05ae1b6b2d 100644 --- a/libavcodec/mpegvideo_enc.c +++ b/libavcodec/mpegvideo_enc.c @@ -1125,7 +1125,6 @@ static int encode_frame(AVCodecContext *c, AVFrame *frame) AVPacket pkt = { 0 }; int ret, got_output; - av_init_packet(&pkt); av_init_packet(&pkt); ret = avcodec_encode_video2(c, &pkt, frame, &got_output); if (ret < 0)