add version test to get rid of deprecation warning for refcounted_frames
This commit is contained in:
parent
39db8136b3
commit
84db1be31d
|
@ -524,7 +524,10 @@ bool VideoStore::setup_resampler() {
|
||||||
audio_out_ctx->channels = audio_in_ctx->channels;
|
audio_out_ctx->channels = audio_in_ctx->channels;
|
||||||
audio_out_ctx->channel_layout = audio_in_ctx->channel_layout;
|
audio_out_ctx->channel_layout = audio_in_ctx->channel_layout;
|
||||||
audio_out_ctx->sample_fmt = audio_in_ctx->sample_fmt;
|
audio_out_ctx->sample_fmt = audio_in_ctx->sample_fmt;
|
||||||
|
#if LIBAVCODEC_VERSION_CHECK(57, 64, 0, 64, 0)
|
||||||
|
#else
|
||||||
audio_out_ctx->refcounted_frames = 1;
|
audio_out_ctx->refcounted_frames = 1;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (audio_out_codec->supported_samplerates) {
|
if (audio_out_codec->supported_samplerates) {
|
||||||
int found = 0;
|
int found = 0;
|
||||||
|
|
Loading…
Reference in New Issue