aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorViliam Mateicka <viliam.mateicka@gmail.com>2009-03-03 19:02:20 +0100
committerMax Kellermann <max@duempel.org>2009-03-03 21:30:55 +0100
commit3b76ca7186e48c6888e3fd57d8dba4765a53995e (patch)
tree8448ca47f582f0cf35ef9856487c8b52aadb32c7 /src
parentc89482de650d0fc5e340f563c9bdf5c3c032b2c9 (diff)
downloadmpd-3b76ca7186e48c6888e3fd57d8dba4765a53995e.tar.gz
mpd-3b76ca7186e48c6888e3fd57d8dba4765a53995e.tar.xz
mpd-3b76ca7186e48c6888e3fd57d8dba4765a53995e.zip
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
Diffstat (limited to '')
-rw-r--r--src/decoder/ffmpeg_plugin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/decoder/ffmpeg_plugin.c b/src/decoder/ffmpeg_plugin.c
index c8e71b20f..3395b3de0 100644
--- a/src/decoder/ffmpeg_plugin.c
+++ b/src/decoder/ffmpeg_plugin.c
@@ -273,7 +273,7 @@ ffmpeg_decode_internal(struct ffmpeg_context *ctx)
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);
#else
/* XXX fixme 16-bit for older ffmpeg (13 Aug 2007) */