Mercurial > hg > aimc
changeset 515:0986e63dd1d7
- Add limits.h
- Fix a compile warning.
author | tom@acousticscale.org |
---|---|
date | Tue, 10 Jul 2012 07:44:29 +0000 |
parents | 1875194aab99 |
children | 2a69b38336c4 |
files | src/Modules/Output/Graphics/Devices/GraphicsOutputDeviceMovie.cc |
diffstat | 1 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/Modules/Output/Graphics/Devices/GraphicsOutputDeviceMovie.cc Tue Jul 10 07:39:24 2012 +0000 +++ b/src/Modules/Output/Graphics/Devices/GraphicsOutputDeviceMovie.cc Tue Jul 10 07:44:29 2012 +0000 @@ -45,6 +45,7 @@ #endif #include <stdio.h> #include <string.h> +#include <limits.h> #include "Modules/Output/Graphics/Devices/GraphicsOutputDeviceMovie.h" @@ -168,10 +169,10 @@ snprintf(sCmdLine, sizeof(sCmdLine)/sizeof(sCmdLine[0]), "%s -y -i \"%s\" -r %.2f -i \"%s%%06d.png\" " "-sameq -r %.2f -ar 44100 -acodec pcm_s16le %s \"%s\"", - sffmpegPath, sound_filename_.c_str(), frame_rate, directory_.c_str(), - frame_rate, sCodecOptions, movie_filename_.c_str()); - printf(sCmdLine); - printf("\n"); + sffmpegPath, sound_filename_.c_str(), frame_rate, directory_.c_str(), + frame_rate, sCodecOptions, movie_filename_.c_str()); + printf("%s", sCmdLine); + printf("\n"); if (system(sCmdLine)) { LOG_ERROR(_T("Couldn't create movie output.")); }