From 404e51478ecad060249d5b9bee6ab39a8a9d8c1c Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Tue, 9 Aug 2016 12:05:49 +0200 Subject: qsv{dec,enc}: always use an internal mfxFrameSurface1 For encoding, this avoids modifying the input surface, which we are not allowed to do. This will also be useful in the following commits. Signed-off-by: Maxym Dmytrychenko --- libavcodec/qsv_internal.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'libavcodec/qsv_internal.h') diff --git a/libavcodec/qsv_internal.h b/libavcodec/qsv_internal.h index 41f4c3ddf6..5b015a619d 100644 --- a/libavcodec/qsv_internal.h +++ b/libavcodec/qsv_internal.h @@ -38,11 +38,10 @@ typedef struct QSVFrame { AVFrame *frame; - mfxFrameSurface1 *surface; - - mfxFrameSurface1 surface_internal; + mfxFrameSurface1 surface; int queued; + int used; struct QSVFrame *next; } QSVFrame; -- cgit v1.2.3