Browse Source

Fix duplicate packet init introduced by 7f9aaa4

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.0
Wolfram Gloger Michael Niedermayer 13 years ago
parent
commit
a5a0dedf11
1 changed files with 0 additions and 1 deletions
  1. +0
    -1
      libavcodec/mpegvideo_enc.c

+ 0
- 1
libavcodec/mpegvideo_enc.c View File

@@ -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)


Loading…
Cancel
Save