mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
swr: Dont use floats for S32->S32 when possible
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
be989f9236
commit
b5f544a0f9
@ -295,6 +295,11 @@ av_cold int swr_init(struct SwrContext *s){
|
||||
if(s->int_sample_fmt == AV_SAMPLE_FMT_NONE){
|
||||
if(av_get_planar_sample_fmt(s->in_sample_fmt) <= AV_SAMPLE_FMT_S16P){
|
||||
s->int_sample_fmt= AV_SAMPLE_FMT_S16P;
|
||||
}else if( av_get_planar_sample_fmt(s-> in_sample_fmt) == AV_SAMPLE_FMT_S32P
|
||||
&& av_get_planar_sample_fmt(s->out_sample_fmt) == AV_SAMPLE_FMT_S32P
|
||||
&& !s->rematrix
|
||||
&& s->engine != SWR_ENGINE_SOXR){
|
||||
s->int_sample_fmt= AV_SAMPLE_FMT_S32P;
|
||||
}else if(av_get_planar_sample_fmt(s->in_sample_fmt) <= AV_SAMPLE_FMT_FLTP){
|
||||
s->int_sample_fmt= AV_SAMPLE_FMT_FLTP;
|
||||
}else{
|
||||
|
Loading…
Reference in New Issue
Block a user