diff -rup mythtv-patch/libs/libmythtv/avformatdecoder.cpp mythtv/libs/libmythtv/avformatdecoder.cpp
old
|
new
|
int AvFormatDecoder::OpenFile(RingBuffer |
841 | 841 | // we will not see a position map from db or remote encoder, |
842 | 842 | // set the gop interval to 15 frames. if we guess wrong, the |
843 | 843 | // auto detection will change it. |
844 | | keyframedist = 15; |
845 | | positionMapType = MARK_GOP_START; |
| 844 | // keyframedist = 15; |
| 845 | // positionMapType = MARK_GOP_START; |
846 | 846 | |
847 | | if (!strcmp(fmt->name, "avi")) |
848 | | { |
| 847 | // if (!strcmp(fmt->name, "avi")) |
| 848 | // { |
849 | 849 | // avi keyframes are too irregular |
850 | | keyframedist = 1; |
851 | | positionMapType = MARK_GOP_BYFRAME; |
852 | | } |
| 850 | // keyframedist = 1; |
| 851 | // positionMapType = MARK_GOP_BYFRAME; |
| 852 | // } |
| 853 | |
| 854 | keyframedist = 1; |
| 855 | positionMapType = MARK_GOP_BYFRAME; |
853 | 856 | |
854 | 857 | dontSyncPositionMap = true; |
855 | 858 | } |
diff -rup mythtv-patch/libs/libmythtv/decoderbase.cpp mythtv/libs/libmythtv/decoderbase.cpp
old
|
new
|
bool DecoderBase::PosMapFromDb(void) |
109 | 109 | if (ringBuffer->isDVD()) |
110 | 110 | { |
111 | 111 | long long totframes; |
112 | | keyframedist = 15; |
| 112 | // keyframedist = 15; |
| 113 | keyframedist = 1; |
113 | 114 | fps = ringBuffer->DVD()->GetFrameRate(); |
114 | | if (fps < 26 && fps > 24) |
115 | | keyframedist = 12; |
| 115 | // if (fps < 26 && fps > 24) |
| 116 | // keyframedist = 12; |
116 | 117 | totframes = (long long)(ringBuffer->DVD()->GetTotalTimeOfTitle() * fps); |
117 | 118 | posMap[totframes] = ringBuffer->DVD()->GetTotalReadPosition(); |
118 | 119 | } |