Fix denoised video output function

This commit fixes the buffer alignment control in denoised video
output function. The encoder is now able to properly store the
denoised input video into provided file when enabled.

Change-Id: I258e272c8d4a9b52592e16d6d09976c6f5c21728
This commit is contained in:
Jingning Han 2015-01-03 12:34:44 -08:00
parent 2fe1bfa5ad
commit 21c0306187

View File

@ -2139,19 +2139,19 @@ void vp9_write_yuv_frame_420(YV12_BUFFER_CONFIG *s, FILE *f) {
} while (--h);
src = s->u_buffer;
h = s->uv_height / 2;
h = s->uv_height;
do {
fwrite(src, s->uv_width / 2, 1, f);
src += s->uv_stride + s->uv_width / 2;
fwrite(src, s->uv_width, 1, f);
src += s->uv_stride;
} while (--h);
src = s->v_buffer;
h = s->uv_height / 2;
h = s->uv_height;
do {
fwrite(src, s->uv_width / 2, 1, f);
src += s->uv_stride + s->uv_width / 2;
fwrite(src, s->uv_width, 1, f);
src += s->uv_stride;
} while (--h);
}
#endif