[FFmpeg-cvslog] doc/example/muxing: fix video timestamps
Michael Niedermayer
git at videolan.org
Fri Dec 2 23:33:32 CET 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Dec 2 23:31:20 2011 +0100| [cf257f30b9723398bc367e1513f097c06223e23c] | committer: Michael Niedermayer
doc/example/muxing: fix video timestamps
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cf257f30b9723398bc367e1513f097c06223e23c
---
doc/examples/muxing.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/doc/examples/muxing.c b/doc/examples/muxing.c
index 394b950..6f88517 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++;
}
}
More information about the ffmpeg-cvslog
mailing list