jpeg: don't overwrite jpeg quality unless zero

This commit is contained in:
Jay Sorg 2012-07-25 19:18:47 -07:00
parent da2a5ac7bc
commit 8e2dac6813

View File

@ -378,7 +378,8 @@ int freerdp_parse_args(rdpSettings* settings, int argc, char** argv,
printf("setting codec jpeg\n"); printf("setting codec jpeg\n");
settings->v3_codec_id = CODEC_ID_JPEG; settings->v3_codec_id = CODEC_ID_JPEG;
settings->jpeg_codec = true; settings->jpeg_codec = true;
settings->jpeg_quality = 75; if (settings->jpeg_quality == 0)
settings->jpeg_quality = 75;
} }
#endif #endif
else else