lavc/mediacodec: use ternary operator to set slice-height value