20 Aug 2012 13:17
[TRIVIAL PATCH] Fix duplicate packet init introduced by 7f9aaa4
Wolfram Gloger <wmglo <at> dent.med.uni-muenchen.de>
2012-08-20 11:17:35 GMT
2012-08-20 11:17:35 GMT
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
<at> <at> -1126,7 +1126,6 <at> <at> 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;
RSS Feed