Commit 9b850793 authored by James Berry's avatar James Berry
Browse files

vpxdec updated to use !feof() instead of *buf_sz in readframe()

For partial droped frames using *buf_sz could incorrectly terminate
a decode.

Change-Id: Id4a1166fa9ae6c0aa7e9f214bfa4c0be0ea82c1c
parent 6f9457ec
......@@ -303,7 +303,7 @@ static int read_frame(struct input_ctx *input,
*buf_sz = new_buf_sz;
if (*buf_sz)
if (!feof(infile))
if (fread(*buf, 1, *buf_sz, infile) != *buf_sz)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment