patch-ogg123_ogg123_c 710 B

123456789101112131415161718192021
  1. $OpenBSD: patch-ogg123_ogg123_c,v 1.1.1.1 2005/06/03 01:04:36 jolan Exp $
  2. --- ogg123/ogg123.c.orig Sat Jul 6 14:12:18 2002
  3. +++ ogg123/ogg123.c Mon Apr 11 23:29:11 2005
  4. @@ -453,6 +453,16 @@ void play (char *source_string)
  5. return;
  6. }
  7. + if ((new_audio_fmt.big_endian != (BYTE_ORDER == BIG_ENDIAN)) ||
  8. + new_audio_fmt.signed_sample != 1 ||
  9. + new_audio_fmt.word_size != 2)
  10. + {
  11. + /* Tremor can only do big_endian, signed, 16 bit samples */
  12. + status_error(_("Error, Tremor can only decode signed 16 bit PCM "
  13. + "host endian.\n"));
  14. + return;
  15. + }
  16. +
  17. /* Decide which statistics are valid */
  18. select_stats(stat_format, &options, source, decoder, audio_buffer);