==================================================================
|
|
|
static int qsv_decode_preinit(AVCodecContext *avctx, QSVContext *q, enum AVPixel
|
| 279 | 279 | |
| 280 | 280 | hwframes_ctx = (AVHWFramesContext*)avctx->hw_frames_ctx->data; |
| 281 | 281 | 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; |
| 284 | 284 | hwframes_ctx->format = AV_PIX_FMT_QSV; |
| 285 | 285 | hwframes_ctx->sw_format = avctx->sw_pix_fmt; |
| 286 | 286 | hwframes_ctx->initial_pool_size = q->suggest_pool_size + 16 + avctx->extra_hw_frames; |