diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2012-07-18 22:20:17 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2012-07-23 18:07:03 +0200 |
commit | 93fc3343fbfa0d82e2b4d005aa39a2abb6b63108 (patch) | |
tree | ac08df51dacaf1dfcc1043e1c724f507cc0e55c3 /pdf/pdf_function.c | |
parent | 1d026e221265713a532c2b1ea158c0817834a70d (diff) | |
download | mupdf-93fc3343fbfa0d82e2b4d005aa39a2abb6b63108.tar.xz |
Remove redundant check in pdf function code
BitsPerSample is already screened later in the code for invalid
values, including the default value 0 returned by pdf_to_int().
Diffstat (limited to 'pdf/pdf_function.c')
-rw-r--r-- | pdf/pdf_function.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/pdf/pdf_function.c b/pdf/pdf_function.c index 72d1be51..8290f291 100644 --- a/pdf/pdf_function.c +++ b/pdf/pdf_function.c @@ -935,8 +935,6 @@ load_sample_func(pdf_function *func, pdf_document *xref, pdf_obj *dict, int num, func->u.sa.size[i] = pdf_to_int(pdf_array_get(obj, i)); obj = pdf_dict_gets(dict, "BitsPerSample"); - if (!pdf_is_int(obj)) - fz_throw(ctx, "malformed /BitsPerSample"); func->u.sa.bps = bps = pdf_to_int(obj); obj = pdf_dict_gets(dict, "Encode"); |