avcodec/ac3: use M_SQRT1_2, M_SQRT2