[FFmpeg-cvslog] ffplay: do not init SDL audio if -an is specified.
Clément Bœsch
git at videolan.org
Tue Jun 21 22:00:03 CEST 2011
ffmpeg | branch: oldabi | Clément Bœsch <clement.boesch at smartjog.com> | Tue Jun 21 11:25:25 2011 +0200| [86824c1dcb3eaffc2b143de452e8082dc3c59822] | committer: Michael Niedermayer
ffplay: do not init SDL audio if -an is specified.
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=86824c1dcb3eaffc2b143de452e8082dc3c59822
---
ffplay.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/ffplay.c b/ffplay.c
index 81b1fce..96a8517 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
More information about the ffmpeg-cvslog
mailing list