Fix duplicate packet init introduced by 7f9aaa4
authorWolfram Gloger <wmglo@dent.med.uni-muenchen.de>
Mon, 20 Aug 2012 11:17:35 +0000 (13:17 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 20 Aug 2012 12:45:28 +0000 (14:45 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/mpegvideo_enc.c

index bf144af..05ae1b6 100644 (file)
@@ -1126,7 +1126,6 @@ static int encode_frame(AVCodecContext *c, AVFrame *frame)
     int ret, got_output;
 
     av_init_packet(&pkt);
-    av_init_packet(&pkt);
     ret = avcodec_encode_video2(c, &pkt, frame, &got_output);
     if (ret < 0)
         return ret;