# HG changeset patch # User reimar # Date 1354303520 0 # Node ID c2b5fda661431af13a96a88a81c2fe9f86b5953d # Parent 5ec9b96eaa481e90d715a3dd00bce936abdafb69 Replace outdated list of unsupported formats by list of supported formats. diff -r 5ec9b96eaa48 -r c2b5fda66143 libaf/af_format.c --- a/libaf/af_format.c Fri Nov 30 19:23:13 2012 +0000 +++ b/libaf/af_format.c Fri Nov 30 19:25:20 2012 +0000 @@ -77,14 +77,13 @@ { 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