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

Tristan Matthews git at videolan.org
Tue Feb 4 19:40:41 CET 2014


vlc | branch: master | Tristan Matthews <le.businessman at gmail.com> | Tue Feb  4 13:37:21 2014 -0500| [0c3e5519aca12742c87a6a28900b79b280b03ec0] | committer: Tristan Matthews

codec: jpeg encoder: fix build for older libjpeg

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0c3e5519aca12742c87a6a28900b79b280b03ec0
---

 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);
 



More information about the vlc-commits mailing list