Mercurial > mplayer.hg
comparison libaf/af_format.c @ 13989:dcb6b4a33aaa
declare check_format and check_bps static, they are used nowhere else.
author | reimar |
---|---|
date | Sat, 20 Nov 2004 10:32:52 +0000 |
parents | e02a261e4c92 |
children | 815f03b7cee5 |
comparison
equal
deleted
inserted
replaced
13988:8ca30ef4e093 | 13989:dcb6b4a33aaa |
---|---|
128 } | 128 } |
129 | 129 |
130 // Helper functions to check sanity for input arguments | 130 // Helper functions to check sanity for input arguments |
131 | 131 |
132 // Sanity check for bytes per sample | 132 // Sanity check for bytes per sample |
133 int check_bps(int bps) | 133 static int check_bps(int bps) |
134 { | 134 { |
135 if(bps != 4 && bps != 3 && bps != 2 && bps != 1){ | 135 if(bps != 4 && bps != 3 && bps != 2 && bps != 1){ |
136 af_msg(AF_MSG_ERROR,"[format] The number of bytes per sample" | 136 af_msg(AF_MSG_ERROR,"[format] The number of bytes per sample" |
137 " must be 1, 2, 3 or 4. Current value is %i \n",bps); | 137 " must be 1, 2, 3 or 4. Current value is %i \n",bps); |
138 return AF_ERROR; | 138 return AF_ERROR; |
139 } | 139 } |
140 return AF_OK; | 140 return AF_OK; |
141 } | 141 } |
142 | 142 |
143 // Check for unsupported formats | 143 // Check for unsupported formats |
144 int check_format(int format) | 144 static int check_format(int format) |
145 { | 145 { |
146 char buf[256]; | 146 char buf[256]; |
147 switch(format & AF_FORMAT_SPECIAL_MASK){ | 147 switch(format & AF_FORMAT_SPECIAL_MASK){ |
148 case(AF_FORMAT_MPEG2): | 148 case(AF_FORMAT_MPEG2): |
149 case(AF_FORMAT_AC3): | 149 case(AF_FORMAT_AC3): |