[vlc-commits] qsv: detect incorrect pixel alignments
Steve Lhomme
git at videolan.org
Wed Apr 4 18:28:36 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Apr 4 16:28:19 2018 +0200| [c19208afb03753012d97957f750b83955fb94cb9] | committer: Steve Lhomme
qsv: detect incorrect pixel alignments
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c19208afb03753012d97957f750b83955fb94cb9
---
modules/codec/qsv.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/codec/qsv.c b/modules/codec/qsv.c
index 7417590112..eeca0989c5 100644
--- a/modules/codec/qsv.c
+++ b/modules/codec/qsv.c
@@ -735,6 +735,8 @@ static int submit_frame(encoder_t *enc, picture_t *pic, QSVFrame **new_frame)
qf->pic = picture_Hold(pic);
+ assert(qf->pic->p[0].p_pixels + (qf->pic->p[0].i_pitch * qf->pic->p[0].i_lines) == qf->pic->p[1].p_pixels);
+
qf->surface.Info = sys->params.mfx.FrameInfo;
// Specify picture structure at runtime.
More information about the vlc-commits
mailing list