mirror of
https://github.com/librempeg/librempeg
synced 2024-11-23 11:39:47 +00:00
ooops
Originally committed as revision 3149 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
9ee91c2f53
commit
e06d3d553c
@ -457,12 +457,12 @@ int main(int argc, char **argv)
|
||||
for(;;) {
|
||||
/* compute current audio and video time */
|
||||
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
|
||||
audio_pts = 0.0;
|
||||
|
||||
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
|
||||
video_pts = 0.0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user