diff options
Diffstat (limited to 'libhb/hb.c')
-rw-r--r-- | libhb/hb.c | 8 |
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; } } |