JPEGDEC: Treat byte arrays as raw JPEG data for #435.

patch-jpegdec
Phil Howard 2023-09-29 09:18:55 +01:00
rodzic fc777ff0ca
commit 4b3e83f2ff
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -249,7 +249,7 @@ mp_obj_t _JPEG_decode(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args
// Source is a filename
int result = -1;
if(mp_obj_is_str_or_bytes(self->file)){
if(mp_obj_is_str(self->file)){
GET_STR_DATA_LEN(self->file, str, str_len);
result = self->jpeg->open(