changeset 837:4cf524326a1a libavformat

set timebase correctly? this thing is always 15fps?
author michael
date Sat, 13 Aug 2005 21:56:57 +0000
parents 8d9d16641fe0
children 128838bc4bb6
files psxstr.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/psxstr.c	Sat Aug 13 16:17:50 2005 +0000
+++ b/psxstr.c	Sat Aug 13 21:56:57 2005 +0000
@@ -177,8 +177,7 @@
                 st = av_new_stream(s, 0);
                 if (!st)
                     return AVERROR_NOMEM;
-                /* set the pts reference (1 pts = 1/90000) */
-                av_set_pts_info(st, 33, 1, 90000);
+                av_set_pts_info(st, 64, 1, 15);
 
                 str->channels[channel].video_stream_index = st->index;
 
@@ -207,7 +206,7 @@
                 st = av_new_stream(s, 0);
                 if (!st)
                     return AVERROR_NOMEM;
-                av_set_pts_info(st, 33, 1, 90000);
+                av_set_pts_info(st, 64, 128, str->channels[channel].sample_rate);
 
                 str->channels[channel].audio_stream_index = st->index;