From 1f14af659067ca51b827bd61187aa94ec21d69b7 Mon Sep 17 00:00:00 2001 From: Johns Date: Wed, 11 Apr 2012 12:16:00 +0200 Subject: [PATCH] Fix bug: playback errors with old PES recordings. --- ChangeLog | 1 + softhddev.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0d22526..81cc598 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ User johns Date: + Fix bug: playback errors with old PES recordings. Adds Hot-key support for 4:3 zoom modes. User johns diff --git a/softhddev.c b/softhddev.c index c6ad33f..796e349 100644 --- a/softhddev.c +++ b/softhddev.c @@ -1732,8 +1732,8 @@ int PlayVideo(const uint8_t * data, int size) Debug(3, "softhddev/video: invalid mpeg2 video packet\n"); } #endif - // SKIP PES header - VideoEnqueue(pts, check - 2, l + 2); + // SKIP PES header, begin of start code + VideoEnqueue(pts, check - z, l + z); return size; } // this happens when vdr sends incomplete packets