diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-05-22 12:21:58 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-05-22 12:21:58 +0000 |
commit | e06d3d553c7ce25c3ffae1675de7bfe1fc029777 (patch) | |
tree | 0a8fb734884c8be8aa2a2217229c1b8a8841b563 /output_example.c | |
parent | 9ee91c2f53dbc7cc61e65805d57e0a805b5752d7 (diff) | |
download | ffmpeg-e06d3d553c7ce25c3ffae1675de7bfe1fc029777.tar.gz |
ooops
Originally committed as revision 3149 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'output_example.c')
-rw-r--r-- | output_example.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/output_example.c b/output_example.c index 45f6a0645b..3b557b0f5b 100644 --- a/output_example.c +++ b/output_example.c @@ -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; |