codec: minor change
authorJay Sorg <jay.sorg@gmail.com>
Thu, 26 Jul 2012 18:15:41 +0000 (11:15 -0700)
committerJay Sorg <jay.sorg@gmail.com>
Thu, 26 Jul 2012 18:15:41 +0000 (11:15 -0700)
libfreerdp-codec/jpeg.c
libfreerdp-utils/args.c

index 8d8e577..eec5eb6 100644 (file)
@@ -143,4 +143,12 @@ jpeg_decompress(uint8 * input, uint8 * output, int width, int height, int size,
        return 1;
 }
 
+#else
+
+boolean
+jpeg_decompress(uint8 * input, uint8 * output, int width, int height, int size, int bpp)
+{
+       return 0;
+}
+
 #endif
index e27f986..1871c23 100644 (file)
@@ -371,6 +371,7 @@ int freerdp_parse_args(rdpSettings* settings, int argc, char** argv,
                        {
                                printf("setting codec nsc\n");
                                settings->v3_codec_id = CODEC_ID_NSCODEC;
+                               settings->ns_codec = true;
                        }
 #ifdef WITH_JPEG
                        else if (strcmp("jpeg", argv[index]) == 0)