Skip to content
Snippets Groups Projects
Commit 64467cbc authored by nyanmisaka's avatar nyanmisaka Committed by Anton Khirnov
Browse files

libavutil/hwcontext_qsv: fix a bug for mapping vaapi frame to qsv


The data stored in data[3] in VAAPI AVFrame is VASurfaceID while
the data stored in pair->first is the pointer of VASurfaceID, so
we need to do cast to make following commandline works:

ffmpeg -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 \
-hwaccel_output_format vaapi -i input.264 \
-vf "hwmap=derive_device=qsv,format=qsv" -c:v h264_qsv output.264

Signed-off-by: default avatarnyanmisaka <nst799610810@gmail.com>
Signed-off-by: default avatarWenbin Chen <wenbin.chen@intel.com>
Signed-off-by: default avatarAnton Khirnov <anton@khirnov.net>
parent c6f4e101
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment