Skip to content

Commit f087394

Browse files
committed
Always re-encode to best supported format.
This change was originally added to prevent audio buffer overruns, but we have now fix this other bug.. So let's keep focusing on quality
1 parent 53e428e commit f087394

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

mythtv/libs/libmyth/audiooutputbase.cpp

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -579,18 +579,7 @@ void AudioOutputBase::Reconfigure(const AudioSettings &orig_settings)
579579
if (enc)
580580
output_format = FORMAT_S16; // Output s16le for AC-3 encoder
581581
else
582-
{
583-
// re-encode audio using same format as input if upmixing
584-
// to minimize the memory sound buffer usage. There should be
585-
// no siginificant quality loss
586-
if (needs_upmix &&
587-
output_settings->IsSupportedFormat(format))
588-
{
589-
output_format = format;
590-
}
591-
else
592-
output_format = output_settings->BestSupportedFormat();
593-
}
582+
output_format = output_settings->BestSupportedFormat();
594583
}
595584

596585
bytes_per_frame = processing ? 4 : output_settings->SampleSize(format);

0 commit comments

Comments
 (0)