blob: 3bff9ac41c77f3c738830c44621b12b648cb1318 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
$NetBSD: patch-ad,v 1.1.1.1 2002/09/24 09:35:17 chris Exp $
--- ogg123/ogg123.c.orig Sat Jul 6 20:12:18 2002
+++ ogg123/ogg123.c Sat Sep 14 19:05:37 2002
@@ -453,6 +453,16 @@
return;
}
+ if ((new_audio_fmt.big_endian != (BYTE_ORDER == BIG_ENDIAN)) ||
+ new_audio_fmt.signed_sample != 1 ||
+ new_audio_fmt.word_size != 2)
+ {
+ /* Tremor can only do big_endian, signed, 16 bit samples */
+ status_error(_("Error, Tremor can only decode signed 16 bit PCM "
+ "host endian.\n"));
+ return;
+ }
+
/* Decide which statistics are valid */
select_stats(stat_format, &options, source, decoder, audio_buffer);
|