History

vaapi_encode_mpeg2: Fix width/height columns/rows confusion

Fixes #7522.

Mark Thompson committed 8 years ago

Commit c0692cb1 parent 4885ff61 file · +2 −2Browse files

Unified · Split

libavcodec/vaapi_encode_mpeg2.c+2−2
@@ -545,8 +545,8 @@ static av_cold int vaapi_encode_mpeg2_configure(AVCodecContext *avctx) · 544 unmodified lines
545545 av_assert0(0 && "Invalid RC mode.");
546546 }
547547
548− ctx->slice_block_rows = FFALIGN(avctx->width, 16) / 16;
549− ctx->slice_block_cols = FFALIGN(avctx->height, 16) / 16;
548+ ctx->slice_block_rows = FFALIGN(avctx->height, 16) / 16;
549+ ctx->slice_block_cols = FFALIGN(avctx->width, 16) / 16;
550550
551551 ctx->nb_slices = ctx->slice_block_rows;
552552 ctx->slice_size = 1;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t