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

Peter Fordham peter.fordham at gmail.com
Sat Jan 16 01:39:11 CET 2010


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;
     default:
         format=AF_FORMAT_S16_LE;
         bits=16;



More information about the MPlayer-dev-eng mailing list