mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Now also using FindHeader() in cMpeg2Fixer::AdjTref()
This commit is contained in:
parent
5b720a4fdb
commit
b2ae3062ab
@ -3025,6 +3025,7 @@ S
|
|||||||
for simplifying calculating the PTS offset in cPtsFixer::Fix() and fixing the overflow
|
for simplifying calculating the PTS offset in cPtsFixer::Fix() and fixing the overflow
|
||||||
handling of PCR values
|
handling of PCR values
|
||||||
for improving cutting MPEG-2 video
|
for improving cutting MPEG-2 video
|
||||||
|
for pointing out that FindHeader() can also be used in cMpeg2Fixer::AdjTref()
|
||||||
|
|
||||||
Peter Münster <pmlists@free.fr>
|
Peter Münster <pmlists@free.fr>
|
||||||
for fixing 'make install' to not overwrite existing configuration files
|
for fixing 'make install' to not overwrite existing configuration files
|
||||||
|
4
HISTORY
4
HISTORY
@ -7533,3 +7533,7 @@ Video Disk Recorder Revision History
|
|||||||
- Improved cutting MPEG-2 video (thanks to Sören Moch).
|
- Improved cutting MPEG-2 video (thanks to Sören Moch).
|
||||||
- Reduced the number of retries in cTransfer::Receive() to avoid blocking recordings
|
- Reduced the number of retries in cTransfer::Receive() to avoid blocking recordings
|
||||||
in case the primary device can't handle the current live signal.
|
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).
|
||||||
|
6
config.h
6
config.h
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* 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
|
#ifndef __CONFIG_H
|
||||||
@ -22,8 +22,8 @@
|
|||||||
|
|
||||||
// VDR's own version number:
|
// VDR's own version number:
|
||||||
|
|
||||||
#define VDRVERSION "1.7.36"
|
#define VDRVERSION "1.7.37"
|
||||||
#define VDRVERSNUM 10736 // Version * 10000 + Major * 100 + Minor
|
#define VDRVERSNUM 10737 // Version * 10000 + Major * 100 + Minor
|
||||||
|
|
||||||
// The plugin API's version number:
|
// The plugin API's version number:
|
||||||
|
|
||||||
|
7
cutter.c
7
cutter.c
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* 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"
|
#include "cutter.h"
|
||||||
@ -206,11 +206,8 @@ void cMpeg2Fixer::AdjGopTime(int Offset, int FramesPerSecond)
|
|||||||
|
|
||||||
void cMpeg2Fixer::AdjTref(int TrefOffset)
|
void cMpeg2Fixer::AdjTref(int TrefOffset)
|
||||||
{
|
{
|
||||||
Reset();
|
if (!FindHeader(0x00000100, "picture"))
|
||||||
if (!Find(0x00000100)) {
|
|
||||||
esyslog("ERROR: Picture header not found!");
|
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
int Tref = GetByte() << 2;
|
int Tref = GetByte() << 2;
|
||||||
int Index1 = GetLastIndex();
|
int Index1 = GetLastIndex();
|
||||||
uchar Byte2 = GetByte();
|
uchar Byte2 = GetByte();
|
||||||
|
Loading…
Reference in New Issue
Block a user