summaryrefslogtreecommitdiff
path: root/libavcodec/dxva2_h264.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2015-01-29 08:42:14 +0100
committerAnton Khirnov <anton@khirnov.net>2015-03-21 11:27:16 +0100
commita12d3188cbec15e22070e139fa5cc541da07e2c3 (patch)
treed3fc06fc85319a761832f32fcbb811af9a1e8de2 /libavcodec/dxva2_h264.c
parent94295106d20b32666a8c4e0d028ef79b9d3f3b7a (diff)
h264: use a smaller struct for the ref lists
There is no need to store a whole H264Picture, with a full AVFrame embedded in it. This should allow getting rid of the embedded AVFrame later.
Diffstat (limited to 'libavcodec/dxva2_h264.c')
-rw-r--r--libavcodec/dxva2_h264.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dxva2_h264.c b/libavcodec/dxva2_h264.c
index 4e8c4ea552..03af474892 100644
--- a/libavcodec/dxva2_h264.c
+++ b/libavcodec/dxva2_h264.c
@@ -240,7 +240,7 @@ static void fill_slice_long(AVCodecContext *avctx, DXVA_Slice_H264_Long *slice,
unsigned i;
for (i = 0; i < FF_ARRAY_ELEMS(slice->RefPicList[list]); i++) {
if (list < sl->list_count && i < sl->ref_count[list]) {
- const H264Picture *r = &sl->ref_list[list][i];
+ const H264Picture *r = sl->ref_list[list][i].parent;
unsigned plane;
unsigned index;
if (ctx->workaround & FF_DXVA2_WORKAROUND_INTEL_CLEARVIDEO)