Skip to content

Commit

Permalink
Fix libx265 encoded fMP4 HLS playback on Safari
Browse files Browse the repository at this point in the history
Signed-off-by: nyanmisaka <[email protected]>
  • Loading branch information
nyanmisaka committed Jan 13, 2024
1 parent ff12d76 commit bf2de40
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Index: jellyfin-ffmpeg/libavformat/movenc.c
===================================================================
--- jellyfin-ffmpeg.orig/libavformat/movenc.c
+++ jellyfin-ffmpeg/libavformat/movenc.c
@@ -2716,7 +2716,7 @@ static int mov_write_stbl_tag(AVFormatCo
track->par->codec_tag == MKTAG('r','t','p',' ')) &&
track->has_keyframes && track->has_keyframes < track->entry)
mov_write_stss_tag(pb, track, MOV_SYNC_SAMPLE);
- if (track->par->codec_type == AVMEDIA_TYPE_VIDEO && track->has_disposable)
+ if (track->par->codec_type == AVMEDIA_TYPE_VIDEO && track->has_disposable && track->entry)
mov_write_sdtp_tag(pb, track);
if (track->mode == MODE_MOV && track->flags & MOV_TRACK_STPS)
mov_write_stss_tag(pb, track, MOV_PARTIAL_SYNC_SAMPLE);
1 change: 1 addition & 0 deletions debian/patches/series
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,4 @@
0057-add-icon-for-windows-version-ffmpeg.patch
0058-add-full-hwa-pipeline-for-rockchip-rk3588-platform.patch
0059-add-checks-for-arm-mali-in-opencl-tonemap.patch
0060-fix-libx265-encoded-fmp4-hls-playback-on-safari.patch

0 comments on commit bf2de40

Please sign in to comment.