|
|
@ -226,10 +226,10 @@ av_cold int swr_init(struct SwrContext *s){ |
|
|
|
}else if(av_get_planar_sample_fmt(s->in_sample_fmt) <= AV_SAMPLE_FMT_FLTP){ |
|
|
|
}else if(av_get_planar_sample_fmt(s->in_sample_fmt) <= AV_SAMPLE_FMT_FLTP){ |
|
|
|
s->int_sample_fmt= AV_SAMPLE_FMT_FLTP; |
|
|
|
s->int_sample_fmt= AV_SAMPLE_FMT_FLTP; |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
av_log(s, AV_LOG_DEBUG, "Using double precision mode\n"); |
|
|
|
|
|
|
|
s->int_sample_fmt= AV_SAMPLE_FMT_DBLP; |
|
|
|
s->int_sample_fmt= AV_SAMPLE_FMT_DBLP; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
av_log(s, AV_LOG_DEBUG, "Using %s internally between filters\n", av_get_sample_fmt_name(s->int_sample_fmt)); |
|
|
|
|
|
|
|
|
|
|
|
if( s->int_sample_fmt != AV_SAMPLE_FMT_S16P |
|
|
|
if( s->int_sample_fmt != AV_SAMPLE_FMT_S16P |
|
|
|
&&s->int_sample_fmt != AV_SAMPLE_FMT_S32P |
|
|
|
&&s->int_sample_fmt != AV_SAMPLE_FMT_S32P |
|
|
|