Commit 9580615e authored by michael's avatar michael

ooops


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3149 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent cc651dad
...@@ -457,12 +457,12 @@ int main(int argc, char **argv) ...@@ -457,12 +457,12 @@ int main(int argc, char **argv)
for(;;) { for(;;) {
/* compute current audio and video time */ /* compute current audio and video time */
if (audio_st) if (audio_st)
audio_pts = (double)audio_st->pts.val * oc->pts_num / oc->pts_den; audio_pts = (double)audio_st->pts.val * audio_st->time_base.num / audio_st->time_base.den;
else else
audio_pts = 0.0; audio_pts = 0.0;
if (video_st) if (video_st)
video_pts = (double)video_st->pts.val * oc->pts_num / oc->pts_den; video_pts = (double)video_st->pts.val * video_st->time_base.num / video_st->time_base.den;
else else
video_pts = 0.0; video_pts = 0.0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment