From: James Berry Date: Thu, 22 Sep 2011 19:03:28 +0000 (-0400) Subject: vpxdec updated to use !feof() instead of *buf_sz in readframe() X-Git-Tag: v1.0.0~125^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9b8507934215f368b0760d5dabcf8a5f56928757;p=libvpx 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 --- diff --git a/vpxdec.c b/vpxdec.c index 304608bb3..6a1a0f523 100644 --- a/vpxdec.c +++ b/vpxdec.c @@ -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) {