VDR-1.3.28-31: BUG with appending sequence end code while moving cutting marks of radio recordings
Commit Message
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.
@@ -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;