commit | a7c7e78aa5715a6fada6595b510deb20447b6d5d | [log] [tgz] |
---|---|---|
author | Yaowu Xu <yaowu@google.com> | Tue Nov 19 10:17:04 2013 -0800 |
committer | Yaowu Xu <yaowu@google.com> | Tue Nov 19 10:28:30 2013 -0800 |
tree | 1cae1d97a956574ddc8db1d45d05ae87e2bc43bc | |
parent | 9e1e7bee486778c1c07af90a26736d5206798eba [diff] |
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
diff --git a/ivfdec.c b/ivfdec.c index 51f4a09..4a0816f 100644 --- a/ivfdec.c +++ b/ivfdec.c
@@ -61,11 +61,12 @@ } } - 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; }