mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-05 00:50:21 +00:00
celt: fix compile against earlier CELT versions
Check the existence of the CELT_SET_COMPLEXITY symbol before trying to use it. Fixes compilation against libcelt 0.4.0. Fixes #604311.
This commit is contained in:
parent
caf2be2115
commit
20540ebdb4
1 changed files with 2 additions and 0 deletions
|
@ -623,7 +623,9 @@ gst_celt_enc_setup (GstCeltEnc * enc)
|
|||
celt_encoder_ctl (enc->state, CELT_SET_VBR_RATE (enc->bitrate), 0);
|
||||
}
|
||||
#endif
|
||||
#ifdef CELT_SET_COMPLEXITY
|
||||
celt_encoder_ctl (enc->state, CELT_SET_COMPLEXITY (enc->complexity), 0);
|
||||
#endif
|
||||
|
||||
GST_LOG_OBJECT (enc, "we have frame size %d", enc->frame_size);
|
||||
|
||||
|
|
Loading…
Reference in a new issue