diff options
author | Xu Guangxin <guangxin.xu@intel.com> | 2021-01-21 12:35:13 +0800 |
---|---|---|
committer | Lynne <dev@lynne.ee> | 2021-01-22 04:30:42 +0100 |
commit | ae97f69ce1032f96e361c0622355ac15cf7f9029 (patch) | |
tree | 9ee3757b0b9e082c1cde194c3910fac9a52f71bf /libavcodec/mpegaudio_parser.c | |
parent | c6a3ca2db491a66af9b1f5b12cbe3058713caf0b (diff) | |
download | ffmpeg-ae97f69ce1032f96e361c0622355ac15cf7f9029.tar.gz |
avutils/vulkan: hwmap, respect src frame resolution
fixes http://trac.ffmpeg.org/ticket/9055
The hw decoder may allocate a large frame from AVHWFramesContext, and adjust width and height based on bitstream.
We need to use resolution from src frame instead of AVHWFramesContext.
test command:
ffmpeg -loglevel debug -hide_banner -hwaccel vaapi -init_hw_device vaapi=va:/dev/dri/renderD128 -hwaccel_device va -hwaccel_output_format vaapi -init_hw_device vulkan=vulk -filter_hw_device vulk -i 1920x1080.264 -c:v libx264 -r:v 30 -profile:v high -preset veryfast -vf "hwmap,chromaber_vulkan=0:0,hwdownload,format=nv12" -map 0 -y vaapiouts.mkv
expected:
No green bar at bottom.
Diffstat (limited to 'libavcodec/mpegaudio_parser.c')
0 files changed, 0 insertions, 0 deletions