From patchwork Sun Aug 28 18:48:22 2005 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Reinhard Nissl X-Patchwork-Id: 11997 Received: from pop.gmx.net ([213.165.64.20] helo=mail.gmx.net) by www.linuxtv.org with smtp (Exim 4.34) id 1E9SDB-0003ah-7Y for vdr@linuxtv.org; Sun, 28 Aug 2005 20:48:57 +0200 Received: (qmail invoked by alias); 28 Aug 2005 18:48:26 -0000 Received: from Af0fc.a.pppool.de (EHLO [192.168.101.15]) [213.6.240.252] by mail.gmx.net (mp010) with SMTP; 28 Aug 2005 20:48:26 +0200 X-Authenticated: #527675 Message-ID: <431206F6.5070801@gmx.de> Date: Sun, 28 Aug 2005 20:48:22 +0200 From: Reinhard Nissl User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Klaus Schmidinger's VDR X-Y-GMX-Trusted: 0 Subject: [vdr] VDR-1.3.28-31: BUG with appending sequence end code while moving cutting marks of radio recordings X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Klaus Schmidinger's VDR List-Id: Klaus Schmidinger's VDR List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Aug 2005 18:48:57 -0000 Status: O X-Status: X-Keywords: X-UID: 4543 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. --- ../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;