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:
parent
15db457ea8
commit
83fc0b9d48
@ -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…
Reference in New Issue
Block a user