Skip to content
Snippets Groups Projects
Commit cf257f30 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

doc/example/muxing: fix video timestamps

parent 096701d9
No related branches found
No related tags found
No related merge requests found
......@@ -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++;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment