You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	lavc/mediacodec: fix chroma width for yuv420p
This commit is contained in:
		| @@ -115,8 +115,8 @@ void ff_mediacodec_sw_buffer_copy_yuv420_planar(AVCodecContext *avctx, | |||||||
|  |  | ||||||
|             if (i == 0) { |             if (i == 0) { | ||||||
|                 width = avctx->width; |                 width = avctx->width; | ||||||
|             } else if (i == 1) { |             } else if (i >= 1) { | ||||||
|                 width = FFMIN(frame->linesize[i], FFALIGN(avctx->width, 2)); |                 width = FFMIN(frame->linesize[i], FFALIGN(avctx->width, 2) / 2); | ||||||
|             } |             } | ||||||
|  |  | ||||||
|             for (j = 0; j < height; j++) { |             for (j = 0; j < height; j++) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user