Browse Source

lavc/mediacodec: fix chroma width for yuv420p

tags/n3.1
Matthieu Bouron 9 years ago
parent
commit
8c24523cc5
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavcodec/mediacodec_sw_buffer.c

+ 2
- 2
libavcodec/mediacodec_sw_buffer.c View File

@@ -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++) {


Loading…
Cancel
Save