From 59becbb18bd5fa44dec20576a943fe9e18f65f97 Mon Sep 17 00:00:00 2001 From: Erik Zandvliet Date: Thu, 12 Sep 2013 11:32:24 +0200 Subject: [PATCH] Now providing audio and video in separate elements within the encoders parts. --- lib/converter.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/converter.cpp b/lib/converter.cpp index d03411cb..b1e67e52 100644 --- a/lib/converter.cpp +++ b/lib/converter.cpp @@ -32,15 +32,15 @@ namespace Converter { while ( !(feof(outFile) || ferror(outFile)) && (getline(&fileBuf, &fileBufLen, outFile) != -1)){ if (strstr(fileBuf, "aac") || strstr(fileBuf, "AAC")){ strtok(fileBuf, " \t"); - allCodecs["ffmpeg"][strtok(NULL, " \t")] = "aac"; + allCodecs["ffmpeg"]["audio"][strtok(NULL, " \t")] = "aac"; } if (strstr(fileBuf, "h264") || strstr(fileBuf, "H264")){ strtok(fileBuf, " \t"); - allCodecs["ffmpeg"][strtok(NULL, " \t")] = "h264"; + allCodecs["ffmpeg"]["video"][strtok(NULL, " \t")] = "h264"; } if (strstr(fileBuf, "mp3") || strstr(fileBuf, "MP3")){ strtok(fileBuf, " \t"); - allCodecs["ffmpeg"][strtok(NULL, " \t")] = "mp3"; + allCodecs["ffmpeg"]["audio"][strtok(NULL, " \t")] = "mp3"; } } fclose( outFile );