MPC-BE forum

MPC-BE => Баг Репорт / The bug report => Тема начата: V0lt от 25 сентября 2022, 12:32:25

Название: MPC Audio Decoder не воспроизводит Vorbis [исправлено]
Отправлено: V0lt от 25 сентября 2022, 12:32:25
MPC-BE x64 1.6.4.54 dev.
Сэмплы: https://samples.mplayerhq.hu/ogg/Vorbis/
Но, скорее всего, подойдут любые другие.

Файл открывается, граф строится, но воспроизведение сразу доходит до конца.
В логе:
CFFAudioDecoder::Decode() : could not process buffer while parsing
Если подключить внешний LAV Audio Decoder, то играет нормально.

25 сентября 2022, 12:56:39
1.6.4.46 dev (git 2022.09.18 - 60ad9b0f8) - нормально
1.6.4.47 dev (git 2022.09.18 - 43ce89fc0 (https://github.com/Aleksoid1978/MPC-BE/commit/43ce89fc02db3cd77b87e66dbf26b7f8eb3e23f9)) - не работает

25 сентября 2022, 21:57:18
Исправлено в 1.6.4.60 dev (git 2022.09.25 - 92381d7f4 (https://github.com/Aleksoid1978/MPC-BE/commit/92381d7f40bb0864417e7fff61a6c4ad5afcb073)).

Хотел написать комментарий к коммиту FFmpeg (https://github.com/FFmpeg/FFmpeg/commit/8fc2dedfe6e8fcc58dd052bf3b85cd4754133b17), но не смог. Напишу тут.
I think this commit is the problem.
To create a packet we call `av_packet_alloc` which calls `get_packet_defaults` which sets `pts = AV_NOPTS_VALUE`. And this value doesn't seem to work with the new code.
I ask you to at least add a warning for this case.