summaryrefslogtreecommitdiff
path: root/doc/examples
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2015-10-15 00:00:45 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2015-10-15 00:24:00 +0200
commit83fc0b9d48d103f091211180bbe38f159790e62b (patch)
tree60c7525d716d7ba4963e733baaf61a3bbd9a92f0 /doc/examples
parent15db457ea8f76cd03a371dee548b7dbc60efcb86 (diff)
doc/examples/muxing: Fix mixed declaration and code
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'doc/examples')
-rw-r--r--doc/examples/muxing.c2
1 files changed, 1 insertions, 1 deletions
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 */