Index: libavcodec/qsvdec.c
==================================================================
--- sources/libavcodec/qsvdec.c
+++ sources/libavcodec/qsvdec.c
@@ -279,8 +279,8 @@ static int qsv_decode_preinit(AVCodecContext *avctx, QSVContext *q, enum AVPixel
 
         hwframes_ctx = (AVHWFramesContext*)avctx->hw_frames_ctx->data;
         frames_hwctx = hwframes_ctx->hwctx;
-        hwframes_ctx->width             = FFALIGN(avctx->coded_width,  32);
-        hwframes_ctx->height            = FFALIGN(avctx->coded_height, 32);
+        hwframes_ctx->width             = avctx->coded_width;
+        hwframes_ctx->height            = avctx->coded_height;
         hwframes_ctx->format            = AV_PIX_FMT_QSV;
         hwframes_ctx->sw_format         = avctx->sw_pix_fmt;
         hwframes_ctx->initial_pool_size = q->suggest_pool_size + 16 + avctx->extra_hw_frames;