Now also using FindHeader() in cMpeg2Fixer::AdjTref()

This commit is contained in:
Klaus Schmidinger 2013-01-23 10:42:41 +01:00
parent 5b720a4fdb
commit b2ae3062ab
4 changed files with 10 additions and 8 deletions

View File

@ -3025,6 +3025,7 @@ S
for simplifying calculating the PTS offset in cPtsFixer::Fix() and fixing the overflow
handling of PCR values
for improving cutting MPEG-2 video
for pointing out that FindHeader() can also be used in cMpeg2Fixer::AdjTref()
Peter Münster <pmlists@free.fr>
for fixing 'make install' to not overwrite existing configuration files

View File

@ -7533,3 +7533,7 @@ Video Disk Recorder Revision History
- Improved cutting MPEG-2 video (thanks to Sören Moch).
- Reduced the number of retries in cTransfer::Receive() to avoid blocking recordings
in case the primary device can't handle the current live signal.
2013-01-23: Version 1.7.37
- Now also using FindHeader() in cMpeg2Fixer::AdjTref() (pointed out by Sören Moch).

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: config.h 2.60 2012/12/30 13:08:41 kls Exp $
* $Id: config.h 2.61 2013/01/22 17:08:50 kls Exp $
*/
#ifndef __CONFIG_H
@ -22,8 +22,8 @@
// VDR's own version number:
#define VDRVERSION "1.7.36"
#define VDRVERSNUM 10736 // Version * 10000 + Major * 100 + Minor
#define VDRVERSION "1.7.37"
#define VDRVERSNUM 10737 // Version * 10000 + Major * 100 + Minor
// The plugin API's version number:

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: cutter.c 2.22 2013/01/20 12:04:07 kls Exp $
* $Id: cutter.c 2.23 2013/01/23 10:39:27 kls Exp $
*/
#include "cutter.h"
@ -206,11 +206,8 @@ void cMpeg2Fixer::AdjGopTime(int Offset, int FramesPerSecond)
void cMpeg2Fixer::AdjTref(int TrefOffset)
{
Reset();
if (!Find(0x00000100)) {
esyslog("ERROR: Picture header not found!");
if (!FindHeader(0x00000100, "picture"))
return;
}
int Tref = GetByte() << 2;
int Index1 = GetLastIndex();
uchar Byte2 = GetByte();