Skip to content

Commit 4b3e83f

Browse files
committed
JPEGDEC: Treat byte arrays as raw JPEG data for #435.
1 parent fc777ff commit 4b3e83f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

micropython/modules/jpegdec/jpegdec.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ mp_obj_t _JPEG_decode(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args
249249
// Source is a filename
250250
int result = -1;
251251

252-
if(mp_obj_is_str_or_bytes(self->file)){
252+
if(mp_obj_is_str(self->file)){
253253
GET_STR_DATA_LEN(self->file, str, str_len);
254254

255255
result = self->jpeg->open(

0 commit comments

Comments
 (0)