Subversion Repositories mdb

Rev

Rev 56 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 56 Rev 61
Line 157... Line 157...
157
uint_32 sample, channel;
157
uint_32 sample, channel;
158
int todo;
158
int todo;
159
 
159
 
160
	if (total_samples == 0) 
160
	if (total_samples == 0) 
161
	{
161
	{
162
		syslog(LOG_DAEMON, "ERROR: FLAC file have to have a total_samples count in STREAMINFO");
162
		syslog(LOG_DAEMON, "ERROR: FLAC file have to have a total samples count grater than 0 in STREAMINFO");
163
		return FLAC__STREAM_DECODER_WRITE_STATUS_ABORT;
163
		return FLAC__STREAM_DECODER_WRITE_STATUS_ABORT;
164
	}
164
	}
165
 
165
 
166
	if (channels <= 0 || (bps != 32 && bps != 16 && bps != 8))
166
	if (channels <= 0 || (bps != 32 && bps != 16 && bps != 8))
167
	{
167
	{