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,6 +179,11 @@ bool WriterAAC::Write(AVPacket *packet, int64_t pts)
|
|||||||
|
|
||||||
WriterAAC::WriterAAC()
|
WriterAAC::WriterAAC()
|
||||||
{
|
{
|
||||||
|
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);
|
Register(this, AV_CODEC_ID_AAC, AUDIO_ENCODING_AAC);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user