fix for using ffplay without specifying the audio device
authorFrançois Revol <revol@free.fr>
Sat, 8 Feb 2003 14:13:52 +0000 (14:13 +0000)
committerFrançois Revol <revol@free.fr>
Sat, 8 Feb 2003 14:13:52 +0000 (14:13 +0000)
Originally committed as revision 1555 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffmpeg.c

index d7a1480..9a1e043 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2513,7 +2513,7 @@ void prepare_play(void)
             fprintf(stderr, "Could not find audio device\n");
             exit(1);
         }
-        opt_output_file(audio_device);
+        opt_output_file(audio_device?audio_device:"/dev/dsp0");
     }
 
     if (has_video) {