aboutsummaryrefslogtreecommitdiffstats
path: root/libswresample/swresample.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-05-02 00:50:00 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-05-02 01:12:16 +0200
commitf2e799a3d08b4a0ff2d2821f58e69cd40cda0a53 (patch)
tree15bf48cf29b93e65d009f9fcefc44160589ffcfd /libswresample/swresample.c
parent71a1f76d3cc937fc1a47f501fc4866f95b74d0b0 (diff)
downloadffmpeg-f2e799a3d08b4a0ff2d2821f58e69cd40cda0a53.tar.gz
swr: add double precision support to the rematrix code
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswresample/swresample.c')
-rw-r--r--libswresample/swresample.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libswresample/swresample.c b/libswresample/swresample.c
index f0a6f0e87b..87a885be1a 100644
--- a/libswresample/swresample.c
+++ b/libswresample/swresample.c
@@ -216,8 +216,9 @@ int swr_init(struct SwrContext *s){
if( s->int_sample_fmt != AV_SAMPLE_FMT_S16P
&&s->int_sample_fmt != AV_SAMPLE_FMT_S32P
- &&s->int_sample_fmt != AV_SAMPLE_FMT_FLTP){
- av_log(s, AV_LOG_ERROR, "Requested sample format %s is not supported internally, S16/S32/FLT is supported\n", av_get_sample_fmt_name(s->int_sample_fmt));
+ &&s->int_sample_fmt != AV_SAMPLE_FMT_FLTP
+ &&s->int_sample_fmt != AV_SAMPLE_FMT_DBLP){
+ av_log(s, AV_LOG_ERROR, "Requested sample format %s is not supported internally, S16/S32/FLT/DBL is supported\n", av_get_sample_fmt_name(s->int_sample_fmt));
return AVERROR(EINVAL);
}