ref: 9b8507934215f368b0760d5dabcf8a5f56928757
parent: 6f9457ec12a98b3aceefbcb79783c084268d0b36
author: James Berry <jamesberry@google.com>
date: Thu Sep 22 11:03:28 EDT 2011
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
--- a/vpxdec.c
+++ b/vpxdec.c
@@ -303,7 +303,7 @@
*buf_sz = new_buf_sz;
- if (*buf_sz)
+ if (!feof(infile))
{
if (fread(*buf, 1, *buf_sz, infile) != *buf_sz)
{