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 | st = av_new_stream(s, 0); | 177 | st = av_new_stream(s, 0); |
| 178 | if (!st) | 178 | if (!st) |
| 179 | return AVERROR_NOMEM; | 179 | return AVERROR_NOMEM; |
| 180 | /* set the pts reference (1 pts = 1/90000) */ | 180 | av_set_pts_info(st, 64, 1, 15); |
| 181 | av_set_pts_info(st, 33, 1, 90000); | ||
| 182 | 181 | ||
| 183 | str->channels[channel].video_stream_index = st->index; | 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 | st = av_new_stream(s, 0); | 206 | st = av_new_stream(s, 0); |
| 208 | if (!st) | 207 | if (!st) |
| 209 | return AVERROR_NOMEM; | 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 | str->channels[channel].audio_stream_index = st->index; | 211 | str->channels[channel].audio_stream_index = st->index; |
| 213 | 212 | ||