[Mplayer-dvb] Re: mpegpes audio output broken

Stefan Baehre ste.ba at gmx.de
Mon Feb 3 23:31:34 CET 2003


> --- ao_mpegpes.c        28 Dec 2002 12:04:57 -0000      1.15
> +++ ao_mpegpes.c        3 Feb 2003 22:03:13 -0000
> @@ -97,6 +97,7 @@
>         case AFMT_S16_LE:
>         case AFMT_S16_BE:
>         case AFMT_MPEG:
> +       case AFMT_AC3:
>             ao_data.format=format;
>             break;
>         default:

This doesn't help.

> @@ -178,7 +179,7 @@
>         unsigned short *s=data;
>  //     if(len>2000) len=2000;
>  //     printf("ao_mpegpes: len=%d  \n",len);
> -       if(ao_data.format==AFMT_S16_LE)
> +//     if(ao_data.format==AFMT_S16_LE)
>             for(i=0;i<len/2;i++) s[i]=(s[i]>>8)|(s[i]<<8); // le<->be
>         send_lpcm_packet(data,len,0xA0,ao_data.pts,freq_id);
>      }
> 
> and tell me the results

This works. Plays fine again.

Thanks,
Stefan

-- 
Stefan Baehre
ste.ba at gmx.de


More information about the MPlayer-dvb mailing list