vdr: remove old patch. closes #3817

This commit is contained in:
Stefan Saraev 2015-01-19 17:18:06 +02:00
parent eb91434183
commit faee944ee5

View File

@ -1,19 +0,0 @@
diff --git a/remux.c b/remux.c
index 87ed469..a30d6e7 100644
--- a/remux.c
+++ b/remux.c
@@ -1511,7 +1511,13 @@ int cFrameDetector::Analyze(const uchar *Data, int Length)
for (int i = 0; i < numPtsValues; i++)
ptsValues[i] = ptsValues[i + 1] - ptsValues[i];
qsort(ptsValues, numPtsValues, sizeof(uint32_t), CmpUint32);
- uint32_t Delta = ptsValues[0] / (framesPerPayloadUnit + parser->IFrameTemporalReferenceOffset());
+ int Div = framesPerPayloadUnit;
+ if (framesPerPayloadUnit > 1) {
+ Div += parser->IFrameTemporalReferenceOffset();
+ if (Div <= 0)
+ Div = 1;
+ }
+ uint32_t Delta = ptsValues[0] / Div;
// determine frame info:
if (isVideo) {
if (abs(Delta - 3600) <= 1)