mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Added TS_SYNC to cMtdHandler::Put()
This commit is contained in:
parent
44813e56a5
commit
d60336ba96
4
mtd.c
4
mtd.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: mtd.c 1.7 2017/03/27 08:35:29 kls Exp $
|
* $Id: mtd.c 1.8 2017/03/27 09:09:37 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "mtd.h"
|
#include "mtd.h"
|
||||||
@ -61,6 +61,8 @@ int cMtdHandler::Put(const uchar *Data, int Count)
|
|||||||
{
|
{
|
||||||
int Used = 0;
|
int Used = 0;
|
||||||
while (Count >= TS_SIZE) {
|
while (Count >= TS_SIZE) {
|
||||||
|
if (int Skipped = TS_SYNC(Data, Count))
|
||||||
|
return Used + Skipped;
|
||||||
int Pid = TsPid(Data);
|
int Pid = TsPid(Data);
|
||||||
if (Pid != CATPID) { // the original CAT with mapped PIDs must be skipped here!
|
if (Pid != CATPID) { // the original CAT with mapped PIDs must be skipped here!
|
||||||
#ifdef KEEPPIDS
|
#ifdef KEEPPIDS
|
||||||
|
Loading…
Reference in New Issue
Block a user