[FFmpeg-devel] [PATCH] ffplay: avoid SDL_atoi()

Michael Niedermayer michaelni at gmx.at
Fri Aug 10 16:04:59 CEST 2012


It appears this function is not available everywhere
Should fix Ticket1525

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
 ffplay.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ffplay.c b/ffplay.c
index 598ce74..282d56f 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -2098,7 +2098,7 @@ static int audio_open(void *opaque, int64_t wanted_channel_layout, int wanted_nb
 
     env = SDL_getenv("SDL_AUDIO_CHANNELS");
     if (env) {
-        wanted_nb_channels = SDL_atoi(env);
+        wanted_nb_channels = atoi(env);
         wanted_channel_layout = av_get_default_channel_layout(wanted_nb_channels);
     }
     if (!wanted_channel_layout || wanted_nb_channels != av_get_channel_layout_nb_channels(wanted_channel_layout)) {
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list