summaryrefslogtreecommitdiff
path: root/doc/examples/muxing.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-12-02 23:31:20 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-12-02 23:31:20 +0100
commitcf257f30b9723398bc367e1513f097c06223e23c (patch)
treeffd468da057959eaa4d9d6980f24ee109478cfe4 /doc/examples/muxing.c
parent096701d9b2a4207529a225d935208e5be8ebde6b (diff)
doc/example/muxing: fix video timestamps
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'doc/examples/muxing.c')
-rw-r--r--doc/examples/muxing.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/examples/muxing.c b/doc/examples/muxing.c
index 394b950c7e..6f88517be4 100644
--- a/doc/examples/muxing.c
+++ b/doc/examples/muxing.c
@@ -500,7 +500,7 @@ int main(int argc, char **argv)
/* write the stream header, if any */
av_write_header(oc);
-
+ picture->pts = 0;
for(;;) {
/* compute current audio and video time */
if (audio_st)
@@ -522,6 +522,7 @@ int main(int argc, char **argv)
write_audio_frame(oc, audio_st);
} else {
write_video_frame(oc, video_st);
+ picture->pts++;
}
}