The most relevant change is in the file:
libavutil/hwcontext_qsv.h
where in ffmpeg 5.1.3 it used to read (line 22):
#include <mfx/mfxvideo.h>
while in ffmpeg 6.0:
#include <mfxvideo.h>
That said, simply adding the folder mfx/ in ffmpeg 6.0 leads to a
compilation error for ffmpeg:
In file included from src/libavfilter/qsvvpp.h:32,
from src/libavfilter/qsvvpp.c:30:
src/libavutil/hwcontext_qsv.h:22:10: fatal error: mfx/mfxvideo.h: No such file
or directory
22 | #include <mfx/mfxvideo.h>
| ^~~~~~~~~~~~~~~~
compilation terminated.