ffmpeg: fix version comparision for av_get_bits_per_sample_format() implemetation
function was implemented in the version we are comparing to so there must be higher or equal
This commit is contained in:
parent
c89482de65
commit
3b76ca7186
@ -273,7 +273,7 @@ ffmpeg_decode_internal(struct ffmpeg_context *ctx)
|
|||||||
codec_context->channels = 2;
|
codec_context->channels = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if LIBAVCODEC_VERSION_INT > ((51<<16)+(41<<8)+0)
|
#if LIBAVCODEC_VERSION_INT >= ((51<<16)+(41<<8)+0)
|
||||||
audio_format.bits = (uint8_t) av_get_bits_per_sample_format(codec_context->sample_fmt);
|
audio_format.bits = (uint8_t) av_get_bits_per_sample_format(codec_context->sample_fmt);
|
||||||
#else
|
#else
|
||||||
/* XXX fixme 16-bit for older ffmpeg (13 Aug 2007) */
|
/* XXX fixme 16-bit for older ffmpeg (13 Aug 2007) */
|
||||||
|
Loading…
Reference in New Issue
Block a user