Ticket #7961: pts.diff
File pts.diff, 1012 bytes (added by , 15 years ago) |
---|
-
libs/libmythtv/avformatdecoder.cpp
4025 4025 // Otherwise assume a wraparound. 4026 4026 if (!ringBuffer->isDVD() && 4027 4027 temppts <= lastvpts && 4028 (temppts + 10000 > lastvpts || temppts < 0))4028 (temppts + 10000 > lastvpts || temppts <= 0)) 4029 4029 { 4030 4030 temppts = lastvpts; 4031 temppts += (long long)(1000 * av_q2d(context->time_base));4031 temppts += (long long)(1000 / av_q2d(curstream->r_frame_rate)); 4032 4032 // MPEG2 frames can be repeated, update pts accordingly 4033 4033 temppts += (long long)(mpa_pic.repeat_pict * 500 4034 4034 * av_q2d(curstream->codec->time_base));