diff options
author | Bradley Sepos <[email protected]> | 2016-07-07 18:24:17 -0400 |
---|---|---|
committer | Bradley Sepos <[email protected]> | 2016-07-07 18:24:17 -0400 |
commit | d332d4de16130d8774b59229f7119501c4512ba9 (patch) | |
tree | 6f6eddeb8b1cc94b31f3513b24cefe9efaef4f1f /libhb/encavcodec.c | |
parent | a923c2ac9e0fa578513dc29c27a7bc03c4fb1319 (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/encavcodec.c')
-rw-r--r-- | libhb/encavcodec.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libhb/encavcodec.c b/libhb/encavcodec.c index a8781f057..f7ed25233 100644 --- a/libhb/encavcodec.c +++ b/libhb/encavcodec.c @@ -302,11 +302,7 @@ int encavcodecInit( hb_work_object_t * w, hb_job_t * job ) fseek( pv->file, 0, SEEK_SET ); log = malloc( size + 1 ); log[size] = '\0'; - if (size > 0 && - fread( log, size, 1, pv->file ) < size) - { - hb_log( "encavcodecInit: Failed to read %s" , filename); - } + fread( log, size, 1, pv->file ); fclose( pv->file ); pv->file = NULL; |