-
-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix QSV deint 3:2 pulldown undefined behavior
Signed-off-by: nyanmisaka <[email protected]>
- Loading branch information
1 parent
beafe65
commit a3b63ea
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
debian/patches/0081-fix-qsv-deint-3-2-pulldown-undefined-behavior.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Index: jellyfin-ffmpeg/libavfilter/qsvvpp.c | ||
=================================================================== | ||
--- jellyfin-ffmpeg.orig/libavfilter/qsvvpp.c | ||
+++ jellyfin-ffmpeg/libavfilter/qsvvpp.c | ||
@@ -463,11 +463,13 @@ static QSVFrame *submit_frame(QSVVPPCont | ||
!qsv_frame->frame->interlaced_frame ? MFX_PICSTRUCT_PROGRESSIVE : | ||
(qsv_frame->frame->top_field_first ? MFX_PICSTRUCT_FIELD_TFF : | ||
MFX_PICSTRUCT_FIELD_BFF); | ||
- if (qsv_frame->frame->repeat_pict == 1) | ||
+ if (qsv_frame->frame->repeat_pict == 1) { | ||
qsv_frame->surface.Info.PicStruct |= MFX_PICSTRUCT_FIELD_REPEATED; | ||
- else if (qsv_frame->frame->repeat_pict == 2) | ||
+ qsv_frame->surface.Info.PicStruct |= qsv_frame->frame->top_field_first ? MFX_PICSTRUCT_FIELD_TFF : | ||
+ MFX_PICSTRUCT_FIELD_BFF; | ||
+ } else if (qsv_frame->frame->repeat_pict == 2) { | ||
qsv_frame->surface.Info.PicStruct |= MFX_PICSTRUCT_FRAME_DOUBLING; | ||
- else if (qsv_frame->frame->repeat_pict == 4) | ||
+ } else if (qsv_frame->frame->repeat_pict == 4) | ||
qsv_frame->surface.Info.PicStruct |= MFX_PICSTRUCT_FRAME_TRIPLING; | ||
|
||
return qsv_frame; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters