E-AC-3 passthrough fixes

Fix several E-AC-3 passthrough issues.

Tested with samples produced by ffmpeg.