decoder: add sanitychecks on demux pointer and filedescriptors

no functional changes