diff options
author | Anton Khirnov <anton@khirnov.net> | 2016-07-13 09:15:56 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2016-07-22 19:08:12 +0200 |
commit | 6f40181cad8ac04adff7bd10e1e1ab65f22bc1f0 (patch) | |
tree | 124740c1162b4a52ab0a9144f5b16673af198899 /avconv_qsv.c | |
parent | b0f36a0043d76436cc7ab8ff92ab99c94595d3c0 (diff) | |
download | ffmpeg-6f40181cad8ac04adff7bd10e1e1ab65f22bc1f0.tar.gz |
avconv_qsv: align the surface size to 32
This is required e.g. by HEVC.
Diffstat (limited to 'avconv_qsv.c')
-rw-r--r-- | avconv_qsv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/avconv_qsv.c b/avconv_qsv.c index 8272f17194..400cf22c87 100644 --- a/avconv_qsv.c +++ b/avconv_qsv.c @@ -76,8 +76,8 @@ int qsv_init(AVCodecContext *s) frames_ctx = (AVHWFramesContext*)ist->hw_frames_ctx->data; frames_hwctx = frames_ctx->hwctx; - frames_ctx->width = s->coded_width; - frames_ctx->height = s->coded_height; + frames_ctx->width = FFALIGN(s->coded_width, 32); + frames_ctx->height = FFALIGN(s->coded_height, 32); frames_ctx->format = AV_PIX_FMT_QSV; frames_ctx->sw_format = AV_PIX_FMT_NV12; frames_ctx->initial_pool_size = 32; |