summaryrefslogtreecommitdiff
path: root/apps/plugins/imageviewer/jpegp/jpegp.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/imageviewer/jpegp/jpegp.c')
-rw-r--r--apps/plugins/imageviewer/jpegp/jpegp.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/plugins/imageviewer/jpegp/jpegp.c b/apps/plugins/imageviewer/jpegp/jpegp.c
index bb7be314f1..88edc7e8f3 100644
--- a/apps/plugins/imageviewer/jpegp/jpegp.c
+++ b/apps/plugins/imageviewer/jpegp/jpegp.c
@@ -96,8 +96,10 @@ static void scaled_dequantization_and_idct(void)
96} 96}
97 97
98static int load_image(char *filename, struct image_info *info, 98static int load_image(char *filename, struct image_info *info,
99 unsigned char *buf, ssize_t *buf_size) 99 unsigned char *buf, ssize_t *buf_size,
100 int offset, int filesize)
100{ 101{
102 (void)filesize;
101 int status; 103 int status;
102 struct JPEGD *p_jpg = &jpg; 104 struct JPEGD *p_jpg = &jpg;
103 105
@@ -110,6 +112,10 @@ static int load_image(char *filename, struct image_info *info,
110 { 112 {
111 return PLUGIN_ERROR; 113 return PLUGIN_ERROR;
112 } 114 }
115 if (offset)
116 {
117 POS(offset);
118 }
113 119
114 if (!iv->running_slideshow) 120 if (!iv->running_slideshow)
115 { 121 {