[MPlayer-cvslog] r35534 - trunk/libaf/af_format.c

reimar subversion at mplayerhq.hu
Fri Nov 30 20:25:20 CET 2012


Author: reimar
Date: Fri Nov 30 20:25:20 2012
New Revision: 35534

Log:
Replace outdated list of unsupported formats by list of supported formats.

Modified:
   trunk/libaf/af_format.c

Modified: trunk/libaf/af_format.c
==============================================================================
--- trunk/libaf/af_format.c	Fri Nov 30 20:23:13 2012	(r35533)
+++ trunk/libaf/af_format.c	Fri Nov 30 20:25:20 2012	(r35534)
@@ -77,14 +77,13 @@ static int check_format(int format)
 {
   char buf[256];
   switch(format & AF_FORMAT_SPECIAL_MASK){
-  case(AF_FORMAT_IMA_ADPCM):
-  case(AF_FORMAT_MPEG2):
-  case(AF_FORMAT_AC3):
-    mp_msg(MSGT_AFILTER, MSGL_ERR, "[format] Sample format %s not yet supported \n",
-	 af_fmt2str(format,buf,256));
-    return AF_ERROR;
+  case AF_FORMAT_MU_LAW:
+  case AF_FORMAT_A_LAW:
+    return AF_OK;
   }
-  return AF_OK;
+  mp_msg(MSGT_AFILTER, MSGL_ERR, "[format] Sample format %s not yet supported \n",
+         af_fmt2str(format,buf,256));
+  return AF_ERROR;
 }
 
 // Initialization and runtime control


More information about the MPlayer-cvslog mailing list