[vlc-devel] [PATCH] codec: jpeg encoder: fix build for older libjpeg

Tristan Matthews le.businessman at gmail.com
Tue Feb 4 19:38:54 CET 2014


---
 modules/codec/jpeg.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/codec/jpeg.c b/modules/codec/jpeg.c
index 7004fcd..3dbc035 100644
--- a/modules/codec/jpeg.c
+++ b/modules/codec/jpeg.c
@@ -358,7 +358,9 @@ static block_t *EncodeBlock(encoder_t *p_enc, picture_t *p_pic)
     jpeg_set_colorspace(&p_sys->p_jpeg, JCS_YCbCr);
 
     p_sys->p_jpeg.raw_data_in = TRUE;
+#if JPEG_LIB_VERSION >= 70
     p_sys->p_jpeg.do_fancy_downsampling = FALSE;
+#endif
 
     jpeg_set_quality(&p_sys->p_jpeg, p_sys->i_quality, TRUE);
 
-- 
1.8.5.3




More information about the vlc-devel mailing list