Merge pull request #855 from pimoroni/patch-jpegdec

JPEGDEC: Treat byte arrays as raw JPEG data for #435.
patch-remove-u-prefixes
Philip Howard 2023-10-06 13:55:17 +01:00 zatwierdzone przez GitHub
commit 9499b7e908
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
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(