diff -u -r -p mythtv.101/libs/libmythtv/avformatdecoder.cpp mythtv/libs/libmythtv/avformatdecoder.cpp
old
|
new
|
bool AvFormatDecoder::ProcessVideoFrame( |
2926 | 2926 | picframe->interlaced_frame = mpa_pic->interlaced_frame; |
2927 | 2927 | picframe->top_field_first = mpa_pic->top_field_first; |
2928 | 2928 | picframe->repeat_pict = mpa_pic->repeat_pict; |
2929 | | picframe->disp_timecode = NormalizeVideoTimecode(stream, temppts); |
2930 | 2929 | picframe->frameNumber = framesPlayed; |
2931 | 2930 | |
2932 | 2931 | m_parent->ReleaseNextVideoFrame(picframe, temppts); |
diff -u -r -p mythtv.101/libs/libmythtv/frame.h mythtv/libs/libmythtv/frame.h
old
|
new
|
typedef struct VideoFrame_ |
38 | 38 | |
39 | 39 | long long frameNumber; |
40 | 40 | long long timecode; |
41 | | int64_t disp_timecode; |
42 | 41 | |
43 | 42 | unsigned char *priv[4]; // random empty storage |
44 | 43 | |
diff -u -r -p mythtv.101/libs/libmythtv/mythplayer.cpp mythtv/libs/libmythtv/mythplayer.cpp
old
|
new
|
MythPlayer::MythPlayer(bool muted) |
201 | 201 | avsync_predictor(0), avsync_predictor_enabled(false), |
202 | 202 | refreshrate(0), |
203 | 203 | lastsync(false), repeat_delay(0), |
204 | | disp_timecode(0), |
205 | 204 | // Time Code stuff |
206 | 205 | prevtc(0), prevrp(0), |
207 | 206 | // LiveTVChain stuff |
… |
… |
void MythPlayer::AVSync(VideoFrame *buff |
1652 | 1651 | { |
1653 | 1652 | repeat_pict = buffer->repeat_pict; |
1654 | 1653 | timecode = buffer->timecode; |
1655 | | disp_timecode = buffer->disp_timecode; |
1656 | 1654 | } |
1657 | 1655 | |
1658 | 1656 | float diverge = 0.0f; |
… |
… |
void MythPlayer::calcSliderPos(osdInfo & |
4348 | 4346 | islive = true; |
4349 | 4347 | } |
4350 | 4348 | |
4351 | | float secsplayed = (float)(disp_timecode / 1000.f); |
| 4349 | float secsplayed = (float)(framesPlayed / video_frame_rate); |
4352 | 4350 | calcSliderPosPriv(info, paddedFields, playbackLen, secsplayed, islive); |
4353 | 4351 | } |
4354 | 4352 | |
diff -u -r -p mythtv.101/libs/libmythtv/mythplayer.h mythtv/libs/libmythtv/mythplayer.h
old
|
new
|
class MPUBLIC MythPlayer |
698 | 698 | bool lastsync; |
699 | 699 | bool decode_extra_audio; |
700 | 700 | int repeat_delay; |
701 | | int64_t disp_timecode; |
702 | 701 | |
703 | 702 | // Time Code stuff |
704 | 703 | int prevtc; ///< 32 bit timecode if last VideoFrame shown |