diff options
author | Stefan Kost <ensonic@users.sf.net> | 2009-07-24 10:47:44 +0300 |
---|---|---|
committer | Stefan Kost <ensonic@users.sf.net> | 2009-07-24 10:50:13 +0300 |
commit | 23967b03a75e0082982ffc0637bbe33293d3cf30 (patch) | |
tree | d7d132f065e3a4714a9fac9fd2946a4f33b3aacb /ext | |
parent | ff1230d1fd3c1c678df9b49fa47038c2828816b1 (diff) |
jpeg: make encoder work with libjpeg v7
We have to specify do_fancy_downsampling = FALSE in the encoder with did not exist before.
Diffstat (limited to 'ext')
-rw-r--r-- | ext/jpeg/gstjpegenc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/jpeg/gstjpegenc.c b/ext/jpeg/gstjpegenc.c index 6e46b961..bac2292d 100644 --- a/ext/jpeg/gstjpegenc.c +++ b/ext/jpeg/gstjpegenc.c @@ -473,6 +473,10 @@ gst_jpegenc_chain (GstPad * pad, GstBuffer * buf) jpegenc->jdest.next_output_byte = GST_BUFFER_DATA (outbuf); jpegenc->jdest.free_in_buffer = GST_BUFFER_SIZE (outbuf); + /* prepare for raw input */ +#if JPEG_LIB_VERSION >= 70 + jpegenc->cinfo.do_fancy_downsampling = FALSE; +#endif jpegenc->cinfo.smoothing_factor = jpegenc->smoothing; jpegenc->cinfo.dct_method = jpegenc->idct_method; jpeg_set_quality (&jpegenc->cinfo, jpegenc->quality, TRUE); |