diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2007-11-10 13:40:51 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2007-11-10 13:40:51 +0100 |
commit | 5793a99d3dd984daaa5b0531050d0b7d17b01761 (patch) | |
tree | 30ae739a159b67c3f0a3e2f2acc302c829bd551c /remux.c | |
parent | c568200d2e6be95cd026b70c9ef532f72b1fc8a7 (diff) | |
download | vdr-5793a99d3dd984daaa5b0531050d0b7d17b01761.tar.gz vdr-5793a99d3dd984daaa5b0531050d0b7d17b01761.tar.bz2 |
Fixed assembling PS1 packets in cTS2PES::instant_repack()
Diffstat (limited to 'remux.c')
-rw-r--r-- | remux.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -11,7 +11,7 @@ * The cRepacker family's code was originally written by Reinhard Nissl <rnissl@gmx.de>, * and adapted to the VDR coding style by Klaus.Schmidinger@cadsoft.de. * - * $Id: remux.c 1.60 2007/11/03 14:36:07 kls Exp $ + * $Id: remux.c 1.61 2007/11/10 13:36:47 kls Exp $ */ #include "remux.h" @@ -1750,13 +1750,13 @@ void cTS2PES::instant_repack(const uint8_t *Buf, int Count) case VIDEO_STREAM_S ... VIDEO_STREAM_E: case PRIVATE_STREAM1: - if (mpeg == 2 && found == 9) { + if (mpeg == 2 && found == 9 && count < found) { // make sure to not write the data twice by looking at count write_ipack(&flag1, 1); write_ipack(&flag2, 1); write_ipack(&hlength, 1); } - if (mpeg == 1 && found == mpeg1_required) { + if (mpeg == 1 && found == mpeg1_required && count < found) { // make sure to not write the data twice by looking at count write_ipack(&flag1, 1); if (mpeg1_required > 7) { write_ipack(&flag2, 1); |