Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2020-11-10 03:57:56 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-11-10 03:58:56 +0300
commitbff1707aaef367822f4fbb38dbc2477b74e643a4 (patch)
tree6d5c37b6f6352a9a08799fdad1085a184536adb0 /source/blender/imbuf
parentb5d310b569e07a937798a2d38539cfd290149f1c (diff)
Cleanup: remove hard coded file format check in IMB_ispic_type
This is already being checked in the 'is_a' callback.
Diffstat (limited to 'source/blender/imbuf')
-rw-r--r--source/blender/imbuf/intern/util.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/source/blender/imbuf/intern/util.c b/source/blender/imbuf/intern/util.c
index 64b03f332a8..7be58a9ca14 100644
--- a/source/blender/imbuf/intern/util.c
+++ b/source/blender/imbuf/intern/util.c
@@ -152,11 +152,6 @@ int IMB_ispic_type(const char *name)
close(fp);
- /* XXX move this exception */
- if ((BIG_LONG(((int *)buf)[0]) & 0xfffffff0) == 0xffd8ffe0) {
- return IMB_FTYPE_JPG;
- }
-
for (type = IMB_FILE_TYPES; type < IMB_FILE_TYPES_LAST; type++) {
if (type->is_a) {
if (type->is_a(buf)) {