]> git.sesse.net Git - ffmpeg/commitdiff
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 d7a1480e1d011eecfa568b50f762d73a42d43e6f..9a1e04379554a01dd20d23db602e9d0dee010ac6 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) {