mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 23:42:58 +02:00
driver/audiodec/ffmpegdec: minor cleanup
This commit is contained in:
@@ -38,7 +38,6 @@ extern "C" {
|
|||||||
#include <libavutil/opt.h>
|
#include <libavutil/opt.h>
|
||||||
#include <libavutil/samplefmt.h>
|
#include <libavutil/samplefmt.h>
|
||||||
#include <libswresample/swresample.h>
|
#include <libswresample/swresample.h>
|
||||||
#include <ao/ao.h>
|
|
||||||
}
|
}
|
||||||
#include <driver/netfile.h>
|
#include <driver/netfile.h>
|
||||||
|
|
||||||
@@ -317,7 +316,7 @@ bool CFfmpegDec::SetMetaData(FILE * /* _in */, CAudioMetaData* m)
|
|||||||
m->samplerate = mSampleRate;
|
m->samplerate = mSampleRate;
|
||||||
std::stringstream ss;
|
std::stringstream ss;
|
||||||
if (codec)
|
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->type_info = ss.str();
|
||||||
m->changed=true;
|
m->changed=true;
|
||||||
if (needsInit)
|
if (needsInit)
|
||||||
|
Reference in New Issue
Block a user