From a7c7e78aa5715a6fada6595b510deb20447b6d5d Mon Sep 17 00:00:00 2001 From: Yaowu Xu Date: Tue, 19 Nov 2013 10:17:04 -0800 Subject: [PATCH] Fix a bug in vpxenc reading raw input frame The bug was introduced in 00a35aab. The reading of raw yuv input frame was off by 4 bytes. Change-Id: I6923ea5528aa529a47a06b64adca8f94847f19a6 --- ivfdec.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ivfdec.c b/ivfdec.c index 51f4a094a..4a0816ff0 100644 --- a/ivfdec.c +++ b/ivfdec.c @@ -61,11 +61,12 @@ int file_is_ivf(struct VpxInputContext *input_ctx) { } } - if (!is_ivf) + if (!is_ivf) { rewind(input_ctx->file); - else + input_ctx->detect.buf_read = 0; + } else { input_ctx->detect.position = 4; - + } return is_ivf; } -- 2.50.1