Commit b4ee0d4
committed
lavc/qsv: set mjpeg height/width alignment
height/width alignment will be used in submit_frame(), copying to a padded
frame as libmfx requires.
It is to fix the segment fault issue when encoding some rawvideos.
Reproduce: -f rawvideo -video_size 1920x1080 -pix_fmt nv12 -i
1920x1080_blue_sky_nv12.yuv -init_hw_device qsv:hw -c:v
mjpeg_qsv -global_quality 80 test.mjpeg
Signed-off-by: Zhong Li <zhong.li@intel.com>1 parent ff90bd4 commit b4ee0d4
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
412 | 412 | | |
413 | 413 | | |
414 | 414 | | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
415 | 419 | | |
416 | 420 | | |
417 | 421 | | |
| |||
0 commit comments