libeplayer3: allow disabling of AAC hardware decoder

export HAL_AAC_SWDEC=1 before starting neutrino and
the (slow) software decoder will be used
This commit is contained in:
Stefan Seyfried
2015-03-07 18:45:46 +01:00
parent 8f9a53e40c
commit ef2df97bde

View File

@@ -179,7 +179,12 @@ bool WriterAAC::Write(AVPacket *packet, int64_t pts)
WriterAAC::WriterAAC()
{
Register(this, AV_CODEC_ID_AAC, AUDIO_ENCODING_AAC);
char *doit = getenv("HAL_AAC_SWDEC");
if (doit)
fprintf(stderr, "[libstb-hal/eplayer3::WriterAAC] HAL_AAC_SWDEC is set, "
"not registering hw decoder\n");
else
Register(this, AV_CODEC_ID_AAC, AUDIO_ENCODING_AAC);
}
static WriterAAC writer_aac __attribute__ ((init_priority (300)));