$OpenBSD: patch-ogg123_speex_format_c,v 1.1 2008/05/11 22:17:28 jasper Exp $
--- ogg123/speex_format.c.orig	Sun May 11 13:26:45 2008
+++ ogg123/speex_format.c	Sun May 11 13:28:22 2008
@@ -475,7 +475,7 @@ void *process_header(ogg_packet *op, int *frame_size,
            cb->printf_error(callback_arg, ERROR, _("Cannot read header"));
      return NULL;
    }
-   if ((*header)->mode >= SPEEX_NB_MODES) {
+   if ((*header)->mode >= SPEEX_NB_MODES || (*header)->mode < 0) {
      cb->printf_error(callback_arg, ERROR, 
 		      _("Mode number %d does not (any longer) exist in this version"),
 	      (*header)->mode);
