mirror of https://git.ffmpeg.org/ffmpeg.git
ffmpeg: fix changing sample rate handling
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
ec20fc1581
commit
03b60509cb
4
ffmpeg.c
4
ffmpeg.c
|
@ -876,7 +876,9 @@ need_realloc:
|
||||||
}
|
}
|
||||||
|
|
||||||
if (enc->channels != dec->channels
|
if (enc->channels != dec->channels
|
||||||
|| enc->sample_fmt != dec->sample_fmt)
|
|| enc->sample_fmt != dec->sample_fmt
|
||||||
|
|| enc->sample_rate!= dec->sample_rate
|
||||||
|
)
|
||||||
ost->audio_resample = 1;
|
ost->audio_resample = 1;
|
||||||
|
|
||||||
resample_changed = ost->resample_sample_fmt != dec->sample_fmt ||
|
resample_changed = ost->resample_sample_fmt != dec->sample_fmt ||
|
||||||
|
|
Loading…
Reference in New Issue