From 86824c1dcb3eaffc2b143de452e8082dc3c59822 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= Date: Tue, 21 Jun 2011 11:25:25 +0200 Subject: [PATCH] ffplay: do not init SDL audio if -an is specified. Signed-off-by: Michael Niedermayer --- ffplay.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ffplay.c b/ffplay.c index 81b1fcead4..96a8517b98 100644 --- a/ffplay.c +++ b/ffplay.c @@ -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