Skip to content

Commit

Permalink
Fix codec keys in new playback module (#4411)
Browse files Browse the repository at this point in the history
* Fix codec names in mime type maps

* Update CONTRIBUTORS.md
  • Loading branch information
dtrexler authored Jan 19, 2025
1 parent 6d2778c commit bbb82dd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
- [3l0w](https://github.com/3l0w)
- [MajMongoose](https://github.com/majmongoose)
- [Olaren15](https://github.com/Olaren15)
- [dtrexler](https://github.com/dtrexler)

# Emby Contributors

Expand Down
6 changes: 3 additions & 3 deletions playback/media3/exoplayer/src/main/kotlin/mapping/audio.kt
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ val ffmpegAudioMimeTypes = mapOf(
"aac" to MimeTypes.AUDIO_AAC,
"ac3" to MimeTypes.AUDIO_AC3,
"alac" to MimeTypes.AUDIO_ALAC,
"amrnb" to MimeTypes.AUDIO_AMR_NB,
"amrwb" to MimeTypes.AUDIO_AMR_WB,
"dca" to MimeTypes.AUDIO_DTS,
"amr_nb" to MimeTypes.AUDIO_AMR_NB,
"amr_wb" to MimeTypes.AUDIO_AMR_WB,
"dts" to MimeTypes.AUDIO_DTS,
"eac3" to MimeTypes.AUDIO_E_AC3,
"flac" to MimeTypes.AUDIO_FLAC,
"mp1" to MimeTypes.AUDIO_MPEG_L1,
Expand Down
4 changes: 2 additions & 2 deletions playback/media3/exoplayer/src/main/kotlin/mapping/video.kt
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ val ffmpegVideoMimeTypes = mapOf(
"mkv" to MimeTypes.VIDEO_MATROSKA,
"webm" to MimeTypes.VIDEO_WEBM,
"h263" to MimeTypes.VIDEO_H263,
"h254" to MimeTypes.VIDEO_H264,
"h265" to MimeTypes.VIDEO_H265,
"h264" to MimeTypes.VIDEO_H264,
"hevc" to MimeTypes.VIDEO_H265,
"vp8" to MimeTypes.VIDEO_VP8,
"vp9" to MimeTypes.VIDEO_VP9,
"av1" to MimeTypes.VIDEO_AV1,
Expand Down

0 comments on commit bbb82dd

Please sign in to comment.