$OpenBSD: patch-ffplay_c,v 1.2 2010/05/26 21:38:52 jakemsr Exp $
--- ffplay.c.orig	Tue May 11 19:21:00 2010
+++ ffplay.c	Wed May 12 19:43:20 2010
@@ -2174,7 +2174,7 @@ static int stream_component_open(VideoState *is, int s
     AVFormatContext *ic = is->ic;
     AVCodecContext *avctx;
     AVCodec *codec;
-    SDL_AudioSpec wanted_spec, spec;
+    SDL_AudioSpec wanted_spec;
 
     if (stream_index < 0 || stream_index >= ic->nb_streams)
         return -1;
@@ -2219,11 +2219,11 @@ static int stream_component_open(VideoState *is, int s
         wanted_spec.samples = SDL_AUDIO_BUFFER_SIZE;
         wanted_spec.callback = sdl_audio_callback;
         wanted_spec.userdata = is;
-        if (SDL_OpenAudio(&wanted_spec, &spec) < 0) {
+        if (SDL_OpenAudio(&wanted_spec, NULL) < 0) {
             fprintf(stderr, "SDL_OpenAudio: %s\n", SDL_GetError());
             return -1;
         }
-        is->audio_hw_buf_size = spec.size;
+        is->audio_hw_buf_size = wanted_spec.size;
         is->audio_src_fmt= SAMPLE_FMT_S16;
     }
 
