[FFmpeg-devel] [TRIVIAL PATCH] Fix duplicate packet init introduced by 7f9aaa4

Wolfram Gloger wmglo at dent.med.uni-muenchen.de
Mon Aug 20 13:17:35 CEST 2012


Author: Wolfram Gloger <wmglo at dent.med.uni-muenchen.de>
Date:   Mon Aug 20 12:00:03 2012 +0200

    Fix duplicate packet init introduced by 7f9aaa4.

diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c
index bf144af..05ae1b6 100644
--- a/libavcodec/mpegvideo_enc.c
+++ b/libavcodec/mpegvideo_enc.c
@@ -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;


More information about the ffmpeg-devel mailing list