summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorHaihao Xiang <haihao.xiang@intel.com>2021-06-29 09:45:38 +0800
committerJames Almer <jamrial@gmail.com>2021-09-12 13:33:50 -0300
commit6803d8b4403ecea18fc288475b4d7cdedd0fb744 (patch)
treed53c4c0e60a455c6c54821b7f690bcd7f0193786 /libavformat
parentcd4e6e404b4afdb4facffc85450c1dcd9abdfc5a (diff)
ffmpeg_hw: make hardware selection for filters more user friendly
When a device is derived from a source device, there are at least 2 devices, and usually the derived device is the expected device, so let's pick the last device if user doesn't specify the filter device with filter_hw_device option After applying this patch, the command below can work: $> ffmpeg -init_hw_device vaapi=va:/dev/dri/renderD128 -init_hw_device qsv=hw@va -f lavfi -i yuvtestsrc -vf format=nv12,hwupload=extra_hw_frames=64 -c:v h264_qsv -y out.h264 Reviewed-by: Soft Works <softworkz@hotmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat')
0 files changed, 0 insertions, 0 deletions