rtpdec_jpeg: Merge two if statements