From: Jerome Jiang Date: Wed, 31 May 2017 22:56:29 +0000 (-0700) Subject: Fix corruption in skin map debugging output yuv. X-Git-Tag: v1.7.0~424 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e254969df2632954395a2d4b02996a4fef1fa288;p=libvpx Fix corruption in skin map debugging output yuv. For both vp8 and vp9. BUG=webm:1437 Change-Id: Ifd06f68a876ade91cc2cc27c574c4641b77cce28 --- diff --git a/vp8/encoder/onyx_if.c b/vp8/encoder/onyx_if.c index fe72d7844..9227f750d 100644 --- a/vp8/encoder/onyx_if.c +++ b/vp8/encoder/onyx_if.c @@ -2488,7 +2488,7 @@ int vp8_update_entropy(VP8_COMP *cpi, int update) { defined(OUTPUT_YUV_SKINMAP) void vp8_write_yuv_frame(FILE *yuv_file, YV12_BUFFER_CONFIG *s) { unsigned char *src = s->y_buffer; - int h = s->y_height; + int h = s->y_crop_height; do { fwrite(src, s->y_width, 1, yuv_file); @@ -2496,7 +2496,7 @@ void vp8_write_yuv_frame(FILE *yuv_file, YV12_BUFFER_CONFIG *s) { } while (--h); src = s->u_buffer; - h = s->uv_height; + h = s->uv_crop_height; do { fwrite(src, s->uv_width, 1, yuv_file); @@ -2504,7 +2504,7 @@ void vp8_write_yuv_frame(FILE *yuv_file, YV12_BUFFER_CONFIG *s) { } while (--h); src = s->v_buffer; - h = s->uv_height; + h = s->uv_crop_height; do { fwrite(src, s->uv_width, 1, yuv_file); diff --git a/vp9/encoder/vp9_encoder.c b/vp9/encoder/vp9_encoder.c index 399aea7a3..00db9d57d 100644 --- a/vp9/encoder/vp9_encoder.c +++ b/vp9/encoder/vp9_encoder.c @@ -2588,7 +2588,7 @@ int vp9_update_entropy(VP9_COMP *cpi, int update) { // denoising we will have to modify this. void vp9_write_yuv_frame_420(YV12_BUFFER_CONFIG *s, FILE *f) { uint8_t *src = s->y_buffer; - int h = s->y_height; + int h = s->y_crop_height; do { fwrite(src, s->y_width, 1, f); @@ -2596,7 +2596,7 @@ void vp9_write_yuv_frame_420(YV12_BUFFER_CONFIG *s, FILE *f) { } while (--h); src = s->u_buffer; - h = s->uv_height; + h = s->uv_crop_height; do { fwrite(src, s->uv_width, 1, f); @@ -2604,7 +2604,7 @@ void vp9_write_yuv_frame_420(YV12_BUFFER_CONFIG *s, FILE *f) { } while (--h); src = s->v_buffer; - h = s->uv_height; + h = s->uv_crop_height; do { fwrite(src, s->uv_width, 1, f);