aboutsummaryrefslogtreecommitdiffstats
path: root/src/jpeg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/jpeg.c')
-rw-r--r--src/jpeg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/jpeg.c b/src/jpeg.c
index 26e60d1..fbe53f6 100644
--- a/src/jpeg.c
+++ b/src/jpeg.c
@@ -51,6 +51,9 @@ static struct image *jpeg_open(FILE *f){
}
j->jerr.pub.error_exit = error_exit;
+
+ j->img.fmt = &libjpeg;
+
return (struct image *)j;
}