summaryrefslogtreecommitdiff
path: root/softhddev.c
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2012-04-11 12:16:00 +0200
committerJohns <johns98@gmx.net>2012-04-11 12:16:00 +0200
commit1f14af659067ca51b827bd61187aa94ec21d69b7 (patch)
treee6f5a720b02a7e4c4fd4c965f3eddfa70e2bb2b7 /softhddev.c
parentaeae505bd4949791dcd38f6fb28706ac52f9b5ea (diff)
downloadvdr-plugin-softhddevice-1f14af659067ca51b827bd61187aa94ec21d69b7.tar.gz
vdr-plugin-softhddevice-1f14af659067ca51b827bd61187aa94ec21d69b7.tar.bz2
Fix bug: playback errors with old PES recordings.
Diffstat (limited to 'softhddev.c')
-rw-r--r--softhddev.c4
1 files changed, 2 insertions, 2 deletions
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