From patchwork Sun Dec 7 12:07:03 2008 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Halim Sahin X-Patchwork-Id: 12683 Received: from as-10.de ([212.112.241.2] helo=mail.as-10.de) by www.linuxtv.org with esmtp (Exim 4.63) (envelope-from ) id 1L9IQD-0001kT-Ot for vdr@linuxtv.org; Sun, 07 Dec 2008 13:07:38 +0100 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.as-10.de (Postfix) with ESMTP id 8737533A780 for ; Sun, 7 Dec 2008 13:07:22 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail.as-10.de Received: from mail.as-10.de ([127.0.0.1]) by localhost (as-10.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8uJJeaUwG4fh for ; Sun, 7 Dec 2008 13:07:22 +0100 (CET) Received: from halim.local (p54AE4EF3.dip.t-dialin.net [84.174.78.243]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: web11p28) by mail.as-10.de (Postfix) with ESMTPSA id 5138233A71F for ; Sun, 7 Dec 2008 13:07:22 +0100 (CET) Received: by halim.local (Postfix, from userid 1000) id DB376122C435; Sun, 7 Dec 2008 13:07:03 +0100 (CET) Date: Sun, 7 Dec 2008 13:07:03 +0100 From: Halim Sahin To: vdr@linuxtv.org Message-ID: <20081207120703.GA20645@halim.local> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) X-LSpam-Score: -2.5 (--) X-LSpam-Report: No, score=-2.5 required=5.0 tests=AWL=0.052, BAYES_00=-2.599 autolearn=ham Subject: [vdr] [ANNOUNCE] small ac3 fix for replex X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.9 Precedence: list Reply-To: VDR Mailing List List-Id: VDR Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Dec 2008 12:07:38 -0000 Status: O X-Status: X-Keywords: X-UID: 18647 hi, Here is a patch for replex which improoves ac3 detection. This patch was written by Reinhard Nissl and tested against latest replex from metzlerbros.de. Thanks Reinhard!!!!! Regards halim --- replex.c.orig 2007-06-19 11:30:08.000000000 +0200 +++ replex.c 2008-04-05 20:40:32.000000000 +0200 @@ -1586,9 +1586,9 @@ void pes_id_out(pes_in_t *p) fframe = p->buf[9+p->hlength+3]; fframe |= (p->buf[9+p->hlength+2]<<8); - if (fframe < p->plength){ + if (fframe > 0 && fframe < p->plength){ if ((c=find_audio_s(p->buf, - 9+p->hlength+4+fframe, + 9+p->hlength+4+fframe-1, AC3, p->plength+6)) >= 0){ rx->scan_found = id; //fprintf(stderr,"0x%04x 0x%04x \n",