[ANNOUNCE] small ac3 fix for replex
Commit Message
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
@@ -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",