[MPlayer-dev-eng] [PATCH] enable ao_pcm to output s16be

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sat Jan 16 10:12:31 CET 2010


On Fri, Jan 15, 2010 at 04:39:11PM -0800, Peter Fordham wrote:
> Hi,
> 
> This is my first contribution to mplayer. It adds the ability to use
> ao_pcm with the s16be format. I think it should probably support more
> formats that it does even after this patch is applied.
> 
> -Pete
> 
> Index: libao2/ao_pcm.c
> ===================================================================
> --- libao2/ao_pcm.c	(revision 30314)
> +++ libao2/ao_pcm.c	(working copy)
> @@ -131,6 +131,9 @@
>      case AF_FORMAT_AC3_LE:
>          bits=16;
>          break;
> +    case AF_FORMAT_S16_BE:
> +        bits=16;
> +        break;

It will write the wrong wav header like that and generate an unplayable
file.
Also you can reuse the AC3 code above and only add the "case"



More information about the MPlayer-dev-eng mailing list