diff options
author | Clément Bœsch <clement.boesch@smartjog.com> | 2011-06-21 11:25:25 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-06-21 21:41:31 +0200 |
commit | 86824c1dcb3eaffc2b143de452e8082dc3c59822 (patch) | |
tree | 5d6e277e92580b080c4f30b29f468051c56af1fa | |
parent | 4a34e54b0ecf342903d5ed112540fa832b62a514 (diff) | |
download | ffmpeg-n0.8.tar.gz |
ffplay: do not init SDL audio if -an is specified.n0.8
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | ffplay.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -3032,6 +3032,8 @@ int main(int argc, char **argv) video_disable = 1; } flags = SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_TIMER; + if (audio_disable) + flags &= ~SDL_INIT_AUDIO; #if !defined(__MINGW32__) && !defined(__APPLE__) flags |= SDL_INIT_EVENTTHREAD; /* Not supported on Windows or Mac OS X */ #endif |