From d332d4de16130d8774b59229f7119501c4512ba9 Mon Sep 17 00:00:00 2001 From: Bradley Sepos Date: Thu, 7 Jul 2016 18:24:17 -0400 Subject: Revert "libhb: don't ignore the return result from fread()" Broke image previews on Linux and Windows (mingw). This reverts commit b7645e7842703d52c44feaa85cfb3c490e09c8dc. --- libhb/hb.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'libhb/hb.c') diff --git a/libhb/hb.c b/libhb/hb.c index 3f63eb8d0..eb62d4f45 100644 --- a/libhb/hb.c +++ b/libhb/hb.c @@ -696,13 +696,7 @@ hb_buffer_t * hb_read_preview(hb_handle_t * h, hb_title_t *title, int preview) for (hh = 0; hh < h; hh++) { - if (fread(data, w, 1, file) < w) - { - hb_error( "hb_read_preview: Failed to read line %d from %s" , hh, filename ); - hb_buffer_close(&buf); - break; - } - + fread(data, w, 1, file); data += stride; } } -- cgit v1.2.3