Browse Source

doc/examples/muxing: Fix mixed declaration and code

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.0
Michael Niedermayer 9 years ago
parent
commit
83fc0b9d48
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      doc/examples/muxing.c

+ 1
- 1
doc/examples/muxing.c View File

@@ -493,12 +493,12 @@ static int write_video_frame(AVFormatContext *oc, OutputStream *ost)
AVCodecContext *c; AVCodecContext *c;
AVFrame *frame; AVFrame *frame;
int got_packet = 0; int got_packet = 0;
AVPacket pkt = { 0 };


c = ost->st->codec; c = ost->st->codec;


frame = get_video_frame(ost); frame = get_video_frame(ost);


AVPacket pkt = { 0 };
av_init_packet(&pkt); av_init_packet(&pkt);


/* encode the image */ /* encode the image */


Loading…
Cancel
Save