summaryrefslogtreecommitdiff
path: root/libavcodec/qsv_internal.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2016-08-09 12:05:49 +0200
committerAnton Khirnov <anton@khirnov.net>2016-11-07 12:47:46 +0100
commit404e51478ecad060249d5b9bee6ab39a8a9d8c1c (patch)
tree942d55c8d20e5741ef4f17551dbe2959c4978238 /libavcodec/qsv_internal.h
parente8bbacbf529049c401bfeea70d5e0b5d2c8b6de6 (diff)
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 <maxym.dmytrychenko@intel.com>
Diffstat (limited to 'libavcodec/qsv_internal.h')
-rw-r--r--libavcodec/qsv_internal.h5
1 files changed, 2 insertions, 3 deletions
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;