Commit aba02c1927 for ffmpeg
commit aba02c1927e50ebc6d851938351a989897049be7
Author: Michael Niedermayer <michael@niedermayer.cc>
Date: Sat Oct 17 03:20:00 2026 +0200
cosmetics: avcodec/vaapi_hevc: put the common picture first in VAAPIDecodePictureHEVC
diff --git a/libavcodec/vaapi_hevc.c b/libavcodec/vaapi_hevc.c
index 878f7965c4..3d0f6632fd 100644
--- a/libavcodec/vaapi_hevc.c
+++ b/libavcodec/vaapi_hevc.c
@@ -32,6 +32,8 @@
#include "hevc/hevcdec.h"
typedef struct VAAPIDecodePictureHEVC {
+ VAAPIDecodePicture pic;
+
#if VA_CHECK_VERSION(1, 2, 0)
VAPictureParameterBufferHEVCExtension pic_param;
VASliceParameterBufferHEVCExtension last_slice_param;
@@ -41,8 +43,6 @@ typedef struct VAAPIDecodePictureHEVC {
#endif
const uint8_t *last_buffer;
size_t last_size;
-
- VAAPIDecodePicture pic;
} VAAPIDecodePictureHEVC;
static void init_vaapi_pic(VAPictureHEVC *va_pic)