Skip to content

Commit

Permalink
Merge pull request #6068 from FreezyLemon/ffmpeg-add-msmpeg4-support
Browse files Browse the repository at this point in the history
FFmpeg: Enable Microsoft MPEG-4 v1-3 decoders
  • Loading branch information
peppy authored Nov 30, 2023
2 parents 1716f53 + 889b3b0 commit fe230a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion osu.Framework.NativeLibs/scripts/ffmpeg/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ FFMPEG_FLAGS=(
# File and video formats
--enable-demuxer='mov,matroska,flv,avi' # mov = mp4, matroska = mkv & webm
--enable-parser='mpeg4video,h264,hevc,vp8,vp9'
--enable-decoder='flv,mpeg4,h264,hevc,vp8,vp9'
--enable-decoder='flv,msmpeg4v1,msmpeg4v2,msmpeg4v3,mpeg4,h264,hevc,vp8,vp9'
--enable-protocol=pipe
)

Expand Down
2 changes: 1 addition & 1 deletion osu.Framework/Graphics/Video/VideoDecoder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ private void recreateCodecContext()
}

if (!openSuccessful)
throw new InvalidOperationException("No usable decoder found");
throw new InvalidOperationException($"No usable decoder found for codec ID {codecParams.codec_id}");
}

private void decodingLoop(CancellationToken cancellationToken)
Expand Down

0 comments on commit fe230a3

Please sign in to comment.