Could not notice a differenc in behavior.
Originally committed as revision 21584 to svn://svn.ffmpeg.org/ffmpeg/trunk
int seek_flags;
int64_t seek_pos;
int64_t seek_rel;
+ int read_pause_return;
AVFormatContext *ic;
int dtg_active_format;
{
is->paused = !is->paused;
if (!is->paused) {
- is->video_current_pts = get_video_clock(is);
+ if(is->read_pause_return != AVERROR(ENOSYS)){
+ is->video_current_pts = get_video_clock(is);
+ }
+
is->frame_timer += (av_gettime() - is->video_current_pts_time) / 1000000.0;
+ is->video_current_pts_time= av_gettime();
}
}
if (is->paused != is->last_paused) {
is->last_paused = is->paused;
if (is->paused)
- av_read_pause(ic);
+ is->read_pause_return= av_read_pause(ic);
else
av_read_play(ic);
}