mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +02:00
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:
@@ -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)));
|
||||
|
Reference in New Issue
Block a user