aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/ffmpeg_decoder_plugin.c
diff options
context:
space:
mode:
authorBrice Jaglin <bjaglin@free.fr>2013-01-16 18:02:58 +0100
committerMax Kellermann <max@duempel.org>2013-01-16 19:54:54 +0100
commit1105e61f292fd61a6316a4b83439dbaa29c102fd (patch)
treeabd3a29d02a789ea2e86ed5b813af6b81f80fb43 /src/decoder/ffmpeg_decoder_plugin.c
parent905d493fd7ac156eb2c060faf35301d62be0cda5 (diff)
downloadmpd-1105e61f292fd61a6316a4b83439dbaa29c102fd.tar.gz
mpd-1105e61f292fd61a6316a4b83439dbaa29c102fd.tar.xz
mpd-1105e61f292fd61a6316a4b83439dbaa29c102fd.zip
decoder/ffmpeg: support float planar audio
Diffstat (limited to 'src/decoder/ffmpeg_decoder_plugin.c')
-rw-r--r--src/decoder/ffmpeg_decoder_plugin.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/decoder/ffmpeg_decoder_plugin.c b/src/decoder/ffmpeg_decoder_plugin.c
index 72a5ff341..4c4cb2b81 100644
--- a/src/decoder/ffmpeg_decoder_plugin.c
+++ b/src/decoder/ffmpeg_decoder_plugin.c
@@ -395,6 +395,11 @@ ffmpeg_sample_format(enum AVSampleFormat sample_fmt)
#endif
return SAMPLE_FORMAT_S32;
+#if LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(51,17,0)
+ case AV_SAMPLE_FMT_FLTP:
+ return SAMPLE_FORMAT_FLOAT;
+#endif
+
default:
break;
}