summaryrefslogtreecommitdiff
path: root/cutter.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2013-01-23 10:42:41 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2013-01-23 10:42:41 +0100
commitb2ae3062abe7f68121404ed55867d8109ed85b08 (patch)
tree1094a8f1086dd0acfdc84971df9d2d5c3a3832a9 /cutter.c
parent5b720a4fdb3497783252df5445bba5abc8dcd3dd (diff)
downloadvdr-b2ae3062abe7f68121404ed55867d8109ed85b08.tar.gz
vdr-b2ae3062abe7f68121404ed55867d8109ed85b08.tar.bz2
Now also using FindHeader() in cMpeg2Fixer::AdjTref()
Diffstat (limited to 'cutter.c')
-rw-r--r--cutter.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/cutter.c b/cutter.c
index 8a6efc54..edb28248 100644
--- a/cutter.c
+++ b/cutter.c
@@ -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();