<div dir="ltr"><div class="gmail_extra">On Tue, Feb 4, 2014 at 10:38 PM, Tristan Matthews <span dir="ltr"><<a href="mailto:le.businessman@gmail.com" target="_blank">le.businessman@gmail.com</a>></span> wrote:<br><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">---<br>
 modules/codec/jpeg.c | 2 ++<br>
 1 file changed, 2 insertions(+)<br>
<br>
diff --git a/modules/codec/jpeg.c b/modules/codec/jpeg.c<br>
index 7004fcd..3dbc035 100644<br>
--- a/modules/codec/jpeg.c<br>
+++ b/modules/codec/jpeg.c<br>
@@ -358,7 +358,9 @@ static block_t *EncodeBlock(encoder_t *p_enc, picture_t *p_pic)<br>
     jpeg_set_colorspace(&p_sys->p_jpeg, JCS_YCbCr);<br>
<br>
     p_sys->p_jpeg.raw_data_in = TRUE;<br>
+#if JPEG_LIB_VERSION >= 70<br>
     p_sys->p_jpeg.do_fancy_downsampling = FALSE;<br>
+#endif<br>
<br>
     jpeg_set_quality(&p_sys->p_jpeg, p_sys->i_quality, TRUE);<span class="HOEnZb"><font color="#888888"><br>
</font></span></blockquote></div><div class="gmail_extra"><br></div>I'm not sure this will work as expected, have you tried to capture screenshot with it?</div><div class="gmail_extra">do_fancy_downsampling = FALSE tells, that input is *real* downsampled data, and libjpeg shouldn't do anything else with it.</div>
<div class="gmail_extra">BTW, libjpeg 6 is almost 12 years old.</div><div class="gmail_extra"><br clear="all"><div><br></div>-- <br>Maxim Bublis
</div></div>