summaryrefslogtreecommitdiff
path: root/doc/examples/muxing.c
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/muxing.c')
-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 */