mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-12 06:01:13 +02:00
fix sample_fmts end check
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Benjamin Drung <bdrung@debian.org>
This commit is contained in:
parent
602fdc3ee2
commit
f61b248156
@ -468,7 +468,7 @@ bool ExportFFmpeg::InitCodecs(AudacityProject *project)
|
||||
}
|
||||
|
||||
if (codec->sample_fmts) {
|
||||
for (int i=0; codec->sample_fmts[i]; i++) {
|
||||
for (int i=0; codec->sample_fmts[i] != AV_SAMPLE_FMT_NONE; i++) {
|
||||
enum AVSampleFormat fmt = codec->sample_fmts[i];
|
||||
if ( fmt == AV_SAMPLE_FMT_S16
|
||||
|| fmt == AV_SAMPLE_FMT_S16P
|
||||
|
Loading…
x
Reference in New Issue
Block a user