mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 13:10:37 +00:00
lavc: add 422/444 YUV with alpha to align_dimensions()
Aligns frame dimensions to 16, which fixes potential invalid writes.
This commit is contained in:
parent
2f97094608
commit
8058284ce0
@ -210,10 +210,14 @@ void avcodec_align_dimensions2(AVCodecContext *s, int *width, int *height,
|
||||
case AV_PIX_FMT_YUV422P9BE:
|
||||
case AV_PIX_FMT_YUV422P10LE:
|
||||
case AV_PIX_FMT_YUV422P10BE:
|
||||
case AV_PIX_FMT_YUVA422P10LE:
|
||||
case AV_PIX_FMT_YUVA422P10BE:
|
||||
case AV_PIX_FMT_YUV444P9LE:
|
||||
case AV_PIX_FMT_YUV444P9BE:
|
||||
case AV_PIX_FMT_YUV444P10LE:
|
||||
case AV_PIX_FMT_YUV444P10BE:
|
||||
case AV_PIX_FMT_YUVA444P10LE:
|
||||
case AV_PIX_FMT_YUVA444P10BE:
|
||||
case AV_PIX_FMT_GBRP9LE:
|
||||
case AV_PIX_FMT_GBRP9BE:
|
||||
case AV_PIX_FMT_GBRP10LE:
|
||||
|
Loading…
Reference in New Issue
Block a user