Skipping anything before syncing

This commit is contained in:
Klaus Schmidinger 2001-02-02 13:10:39 +01:00
parent 6638c15b5b
commit 1aca768a63

View File

@ -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: dvbapi.c 1.53 2001/01/27 11:04:55 kls Exp $ * $Id: dvbapi.c 1.54 2001/02/02 13:10:39 kls Exp $
*/ */
#include "dvbapi.h" #include "dvbapi.h"
@ -864,8 +864,10 @@ int cRecordBuffer::Synchronize(void)
} }
else if (pictureType == NO_PICTURE) { else if (pictureType == NO_PICTURE) {
if (!synced) { if (!synced) {
if (pt == I_FRAME) if (pt == I_FRAME) {
Skip(i);
synced = true; synced = true;
}
else { else {
Skip(i + l); Skip(i + l);
i = 0; i = 0;