mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-05-31 00:47:44 +00:00
doc/example/muxing: fix video timestamps
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
096701d9b2
commit
cf257f30b9
1 changed files with 2 additions and 1 deletions
|
@ -500,7 +500,7 @@ int main(int argc, char **argv)
|
||||||
|
|
||||||
/* write the stream header, if any */
|
/* write the stream header, if any */
|
||||||
av_write_header(oc);
|
av_write_header(oc);
|
||||||
|
picture->pts = 0;
|
||||||
for(;;) {
|
for(;;) {
|
||||||
/* compute current audio and video time */
|
/* compute current audio and video time */
|
||||||
if (audio_st)
|
if (audio_st)
|
||||||
|
@ -522,6 +522,7 @@ int main(int argc, char **argv)
|
||||||
write_audio_frame(oc, audio_st);
|
write_audio_frame(oc, audio_st);
|
||||||
} else {
|
} else {
|
||||||
write_video_frame(oc, video_st);
|
write_video_frame(oc, video_st);
|
||||||
|
picture->pts++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue