Ticket #9378: qsv-size-5.1.2.patch

File qsv-size-5.1.2.patch, 874 bytes (added by Steve Browne, 3 years ago)
  • sources/libavcodec/qsvdec.c

    ==================================================================
    static int qsv_decode_preinit(AVCodecContext *avctx, QSVContext *q, enum AVPixel  
    279279
    280280        hwframes_ctx = (AVHWFramesContext*)avctx->hw_frames_ctx->data;
    281281        frames_hwctx = hwframes_ctx->hwctx;
    282         hwframes_ctx->width             = FFALIGN(avctx->coded_width,  32);
    283         hwframes_ctx->height            = FFALIGN(avctx->coded_height, 32);
     282        hwframes_ctx->width             = avctx->coded_width;
     283        hwframes_ctx->height            = avctx->coded_height;
    284284        hwframes_ctx->format            = AV_PIX_FMT_QSV;
    285285        hwframes_ctx->sw_format         = avctx->sw_pix_fmt;
    286286        hwframes_ctx->initial_pool_size = q->suggest_pool_size + 16 + avctx->extra_hw_frames;