avcodec/jpeglsenc: Remove redundant pixel format checks