mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-09 05:38:58 +00:00
smokeenc: don't crash when compiled against libjpeg7
Set parameters so that we don't crash with libjpeg7. Based on Stefan Kost's fix for jpegenc. Fixes #591951.
This commit is contained in:
parent
4ce46c932b
commit
68c4019057
1 changed files with 5 additions and 0 deletions
|
@ -145,6 +145,11 @@ smokecodec_encode_new (SmokeCodecInfo ** info,
|
|||
|
||||
newinfo->cinfo.dct_method = JDCT_FASTEST;
|
||||
|
||||
/* prepare for raw input */
|
||||
#if JPEG_LIB_VERSION >= 70
|
||||
newinfo->cinfo.do_fancy_downsampling = FALSE;
|
||||
#endif
|
||||
|
||||
newinfo->cinfo.raw_data_in = TRUE;
|
||||
newinfo->cinfo.in_color_space = JCS_YCbCr;
|
||||
newinfo->cinfo.comp_info[0].h_samp_factor = 2;
|
||||
|
|
Loading…
Reference in a new issue