Originally committed as revision 4519 to svn://svn.ffmpeg.org/ffmpeg/trunk
Unified · Split
| @@ -177,8 +177,7 @@ static int str_read_header(AVFormatContext *s, · 176 unmodified lines | ||
| 177 | 177 | st = av_new_stream(s, 0); |
| 178 | 178 | if (!st) |
| 179 | 179 | return AVERROR_NOMEM; |
| 180 | − /* set the pts reference (1 pts = 1/90000) */ | |
| 181 | − av_set_pts_info(st, 33, 1, 90000); | |
| 180 | + av_set_pts_info(st, 64, 1, 15); | |
| 182 | 181 | |
| 183 | 182 | str->channels[channel].video_stream_index = st->index; |
| 184 | 183 | |
| @@ -207,7 +206,7 @@ static int str_read_header(AVFormatContext *s, · 22 unmodified lines | ||
| 207 | 206 | st = av_new_stream(s, 0); |
| 208 | 207 | if (!st) |
| 209 | 208 | return AVERROR_NOMEM; |
| 210 | − av_set_pts_info(st, 33, 1, 90000); | |
| 209 | + av_set_pts_info(st, 64, 128, str->channels[channel].sample_rate); | |
| 211 | 210 | |
| 212 | 211 | str->channels[channel].audio_stream_index = st->index; |
| 213 | 212 | |