diff --git a/src/driver/audiodec/ffmpegdec.cpp b/src/driver/audiodec/ffmpegdec.cpp index 5da2712f4..b6cf0a59a 100644 --- a/src/driver/audiodec/ffmpegdec.cpp +++ b/src/driver/audiodec/ffmpegdec.cpp @@ -38,7 +38,6 @@ extern "C" { #include #include #include -#include } #include @@ -317,7 +316,7 @@ bool CFfmpegDec::SetMetaData(FILE * /* _in */, CAudioMetaData* m) m->samplerate = mSampleRate; std::stringstream ss; if (codec) - ss << std::string(codec->long_name) + " / " << mChannels << " channel(s)"; + ss << std::string(codec->long_name) + " / " << mChannels << " channel" << ( mChannels > 1 ? "s" : ""); m->type_info = ss.str(); m->changed=true; if (needsInit)