From 83fc0b9d48d103f091211180bbe38f159790e62b Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 15 Oct 2015 00:00:45 +0200 Subject: doc/examples/muxing: Fix mixed declaration and code Signed-off-by: Michael Niedermayer --- doc/examples/muxing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/examples/muxing.c b/doc/examples/muxing.c index 041617aff3..d4dac5cd69 100644 --- a/doc/examples/muxing.c +++ b/doc/examples/muxing.c @@ -493,12 +493,12 @@ static int write_video_frame(AVFormatContext *oc, OutputStream *ost) AVCodecContext *c; AVFrame *frame; int got_packet = 0; + AVPacket pkt = { 0 }; c = ost->st->codec; frame = get_video_frame(ost); - AVPacket pkt = { 0 }; av_init_packet(&pkt); /* encode the image */ -- cgit v1.2.3