This fixes missing mp3 channel data in the FFmpeg demuxer.
-- v5: winedmo: Call avformat_find_stream_info for the mp3 format.
From: Brendan McGrath bmcgrath@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) {
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
This merge request was approved by Rémi Bernon.