1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

doc/examples/muxing: Fix mixed declaration and code

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2015-10-15 00:00:45 +02:00
parent 15db457ea8
commit 83fc0b9d48

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 */