1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-21 06:40:08 +02:00

remove special case for flac, flac has smalllast frame cap set

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Benjamin Drung <bdrung@debian.org>
This commit is contained in:
benjamin.drung@gmail.com 2014-05-27 21:40:22 +00:00
parent 259e9361da
commit 813f8450ea

View File

@ -636,7 +636,6 @@ bool ExportFFmpeg::Finalize()
// Or if frame_size is 1, then it's some kind of PCM codec, they don't have frames and will be fine with the samples // Or if frame_size is 1, then it's some kind of PCM codec, they don't have frames and will be fine with the samples
// Or if user configured the exporter to pad with silence, then we'll send audio + silence as a frame. // Or if user configured the exporter to pad with silence, then we'll send audio + silence as a frame.
if ((codec->capabilities & CODEC_CAP_SMALL_LAST_FRAME) if ((codec->capabilities & CODEC_CAP_SMALL_LAST_FRAME)
|| codec->id == CODEC_ID_FLAC
|| mEncAudioCodecCtx->frame_size <= 1 || mEncAudioCodecCtx->frame_size <= 1
|| gPrefs->Read(wxT("/FileFormats/OverrideSmallLastFrame"), true) || gPrefs->Read(wxT("/FileFormats/OverrideSmallLastFrame"), true)
) )