[FFmpeg-cvslog] ffplay: avoid SDL_atoi()

Michael Niedermayer git at videolan.org
Sun Aug 12 20:10:01 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Aug 10 16:03:42 2012 +0200| [ab0ea7cb41e698c1d8462441c72c204771418b55] | committer: Michael Niedermayer

ffplay: avoid SDL_atoi()

It appears this function is not available everywhere
Should fix Ticket1525

Reviewed-by: Marton Balint <cus at passwd.hu>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ab0ea7cb41e698c1d8462441c72c204771418b55
---

 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)) {



More information about the ffmpeg-cvslog mailing list