[MPlayer-users] mixed ac3 5.1 and 2 channel

Guillaume POIRIER poirierg at gmail.com
Sun Oct 2 10:09:56 CEST 2005


Hi,

On 10/2/05, Ariel <asmplayer at dsgml.com> wrote:
>
> Since no one else replied I guess I have to hack it myself. This patch
> (included below) worked nicely. It basically forces the resampling code to
> always assume everything has 6 channels. (If you ask for 6 channels on the
> command line.) It works perfectly.
>
> I don't understand the point of the resampling code! It certainly doesn't
> seem to be doing anything useful.
>
> Patch:
>
> diff -u -r mplayer-1.0-pre7.orig/liba52/resample_c.c mplayer-1.0-pre7/liba52/resample_c.c
> --- mplayer-1.0-pre7.orig/liba52/resample_c.c   2005-10-02 03:27:44.000000000 -0400
> +++ mplayer-1.0-pre7/liba52/resample_c.c        2005-10-02 03:28:48.000000000 -0400
> @@ -179,5 +179,6 @@
>          if(ch==6) return a52_resample_3F_2R_LFE_to_6_C;
>          break;
>       }
> +    if(ch==6) return a52_resample_3F_2R_LFE_to_6_C;
>       return NULL;
>   }
> diff -u -r mplayer-1.0-pre7.orig/liba52/resample_mmx.c mplayer-1.0-pre7/liba52/resample_mmx.c
> --- mplayer-1.0-pre7.orig/liba52/resample_mmx.c 2005-10-02 03:28:02.000000000 -0400
> +++ mplayer-1.0-pre7/liba52/resample_mmx.c      2005-10-02 03:19:11.000000000 -0400
> @@ -512,5 +512,6 @@
>          if(ch==6) return a52_resample_3F_2R_LFE_to_6_MMX;
>          break;
>       }
> +    if(ch==6) return a52_resample_3F_2R_LFE_to_6_MMX;
>       return NULL;
>   }
>

Please make sure your patch applies to CVS, or is still needed in CVS.

Guillaume

--
Reading doesn't hurt, really!
 -- Dominik 'Rathann' Mierzejewski




More information about the MPlayer-users mailing list