[PATCH v5 0/1] MR7439: winedmo: Find mp3 stream info if channel data is missing.
This fixes missing mp3 channel data in the FFmpeg demuxer. -- v5: winedmo: Call avformat_find_stream_info for the mp3 format. https://gitlab.winehq.org/wine/wine/-/merge_requests/7439
From: Brendan McGrath <bmcgrath(a)codeweavers.com> Required to obtain the number of channels. --- dlls/winedmo/unix_demuxer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/winedmo/unix_demuxer.c b/dlls/winedmo/unix_demuxer.c index 15d906e0c5f..7a1a262e6c9 100644 --- a/dlls/winedmo/unix_demuxer.c +++ b/dlls/winedmo/unix_demuxer.c @@ -154,7 +154,8 @@ NTSTATUS demuxer_create( void *arg ) } format = demuxer->ctx->iformat; - if ((params->duration = get_context_duration( demuxer->ctx )) == AV_NOPTS_VALUE) + if ((params->duration = get_context_duration( demuxer->ctx )) == AV_NOPTS_VALUE || + strstr( format->name, "mp3" )) { if ((ret = avformat_find_stream_info( demuxer->ctx, NULL )) < 0) { -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/7439
On Mon Mar 3 09:49:24 2025 +0000, Brendan McGrath wrote:
changed this line in [version 5 of the diff](/wine/wine/-/merge_requests/7439/diffs?diff_id=161465&start_sha=929b7915d072049c6f2f78ca88a743ce14f2f3c4#a2dc685a448c8c3ff07c910cdcc7c47a80ac8be8_166_165) Done
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/7439#note_96522
This merge request was approved by Rémi Bernon. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/7439
participants (3)
-
Brendan McGrath -
Brendan McGrath (@redmcg) -
Rémi Bernon