VDR-1.3.28-31: BUG with appending sequence end code while moving cutting marks of radio recordings

Message ID 431206F6.5070801@gmx.de
State New
Headers

Commit Message

Reinhard Nissl Aug. 28, 2005, 6:48 p.m. UTC
  Hi,

I'm sorry for having introduced this bug.

It is wrong to append a sequence end code (video stream related) to an 
audio stream, when moving cuttingv marks of radio recordings.

The attached patch fixes this issue.

Bye.
  

Patch

--- ../vdr-1.3.31-orig/dvbplayer.c	2005-08-14 12:52:45.000000000 +0200
+++ dvbplayer.c	2005-08-28 20:28:52.000000000 +0200
@@ -661,7 +661,7 @@  void cDvbPlayer::Goto(int Index, bool St
            if (playMode == pmPause)
               DevicePlay();
            // append sequence end code to get the image shown immediately with softdevices
-           if (r > 6) { // should be always true
+           if (r > 6 && (b[3] & 0xF0) == 0xE0) { // make sure to append it only to a video packet
               b[r++] = 0x00;
               b[r++] = 0x00;
               b[r++] = 0x01;