Fix corruption in skin map debugging output yuv.
For both vp8 and vp9. BUG=webm:1437 Change-Id: Ifd06f68a876ade91cc2cc27c574c4641b77cce28
This commit is contained in:
parent
f1a300acc4
commit
e254969df2
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user