summaryrefslogtreecommitdiffstats
path: root/libhb/hb.c
diff options
context:
space:
mode:
authorBradley Sepos <[email protected]>2016-07-07 18:24:17 -0400
committerBradley Sepos <[email protected]>2016-07-07 18:24:17 -0400
commitd332d4de16130d8774b59229f7119501c4512ba9 (patch)
tree6f6eddeb8b1cc94b31f3513b24cefe9efaef4f1f /libhb/hb.c
parenta923c2ac9e0fa578513dc29c27a7bc03c4fb1319 (diff)
Revert "libhb: don't ignore the return result from fread()"
Broke image previews on Linux and Windows (mingw). This reverts commit b7645e7842703d52c44feaa85cfb3c490e09c8dc.
Diffstat (limited to 'libhb/hb.c')
-rw-r--r--libhb/hb.c8
1 files changed, 1 insertions, 7 deletions
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;
}
}