From 76feee19c4b1e710f4619003244c31069b7d7e9e Mon Sep 17 00:00:00 2001 From: reimar Date: Mon, 11 Jan 2010 19:37:50 +0000 Subject: Add a hack to af_fmt2bits to recognize AC3 as a 16-bit format, since this is more correct than 8 bit for alignment purposes. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30278 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libaf/format.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libaf/format.c b/libaf/format.c index 1427f232f1..cb795ee362 100644 --- a/libaf/format.c +++ b/libaf/format.c @@ -74,6 +74,7 @@ int af_str2fmt(const char* str) int af_fmt2bits(int format) { + if (AF_FORMAT_IS_AC3(format)) return 16; return (format & AF_FORMAT_BITS_MASK)+8; // return (((format & AF_FORMAT_BITS_MASK)>>3)+1) * 8; #if 0 -- cgit v1.2.3