Skip to content

Commit

Permalink
MpaDecFilter: исправлено декодирование Vorbis после 43ce89f.
Browse files Browse the repository at this point in the history
Проблема появилась после изменения в FFmpeg (FFmpeg/FFmpeg@8fc2ded).
  • Loading branch information
v0lt committed Sep 25, 2022
1 parent bc078e1 commit 92381d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/filters/transform/MpaDecFilter/FFAudioDecoder.cpp
Expand Up @@ -444,6 +444,10 @@ bool CFFAudioDecoder::Init(enum AVCodecID codecID, CMediaType* mediaType)
m_Mixer.UpdateInput(SAMPLE_FMT_FLTP, m_pAVCtx->ch_layout.u.mask, m_pAVCtx->sample_rate);
m_Mixer.UpdateOutput(SAMPLE_FMT_FLT, m_MixerChannelLayout, m_pAVCtx->sample_rate);
}
else if (codec_id == AV_CODEC_ID_VORBIS) {
// Strange hack to correct Vorbis decoding after https://github.com/FFmpeg/FFmpeg/commit/8fc2dedfe6e8fcc58dd052bf3b85cd4754133b17
m_pDecodePacket->pts = 0;
}

m_bNeedSyncpoint = (m_raData.deint_id != 0);

Expand Down

3 comments on commit 92381d7

@lvqcl
Copy link

@lvqcl lvqcl commented on 92381d7 Oct 17, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Альтернативный фикс: Nevcairiel/LAVFilters@2b1eaec

@Aleksoid1978
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ну и зачем это писать ?
Да может быть сотни вариантов решения проблемы/задачи, и что.

@v0lt
Copy link
Collaborator Author

@v0lt v0lt commented on 92381d7 Oct 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Альтернативный фикс: Nevcairiel/LAVFilters@2b1eaec

Фикс неудачный. Появляется треск на Vorbis.

Please sign in to comment.