mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-13 10:30:05 +01:00
avconv_qsv: align the surface size to 32
This is required e.g. by HEVC.
This commit is contained in:
@@ -76,8 +76,8 @@ int qsv_init(AVCodecContext *s)
|
|||||||
frames_ctx = (AVHWFramesContext*)ist->hw_frames_ctx->data;
|
frames_ctx = (AVHWFramesContext*)ist->hw_frames_ctx->data;
|
||||||
frames_hwctx = frames_ctx->hwctx;
|
frames_hwctx = frames_ctx->hwctx;
|
||||||
|
|
||||||
frames_ctx->width = s->coded_width;
|
frames_ctx->width = FFALIGN(s->coded_width, 32);
|
||||||
frames_ctx->height = s->coded_height;
|
frames_ctx->height = FFALIGN(s->coded_height, 32);
|
||||||
frames_ctx->format = AV_PIX_FMT_QSV;
|
frames_ctx->format = AV_PIX_FMT_QSV;
|
||||||
frames_ctx->sw_format = AV_PIX_FMT_NV12;
|
frames_ctx->sw_format = AV_PIX_FMT_NV12;
|
||||||
frames_ctx->initial_pool_size = 32;
|
frames_ctx->initial_pool_size = 32;
|
||||||
|
|||||||
Reference in New Issue
Block a user