Commit 8c24523c authored by Matthieu Bouron's avatar Matthieu Bouron

lavc/mediacodec: fix chroma width for yuv420p

parent f659b70e
......@@ -115,8 +115,8 @@ void ff_mediacodec_sw_buffer_copy_yuv420_planar(AVCodecContext *avctx,
if (i == 0) {
width = avctx->width;
} else if (i == 1) {
width = FFMIN(frame->linesize[i], FFALIGN(avctx->width, 2));
} else if (i >= 1) {
width = FFMIN(frame->linesize[i], FFALIGN(avctx->width, 2) / 2);
}
for (j = 0; j < height; j++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment