Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dc9df6a1 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "heic content_encoding field is optional" into pi-dev

parents 0f701171 46c24cd8
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -1058,10 +1058,13 @@ status_t InfeBox::parse(off64_t offset, size_t size, ItemInfo *itemInfo) {
                return ERROR_MALFORMED;
            }

            // content_encoding is optional; can be omitted if would be empty
            if (size > 0) {
                String8 content_encoding;
                if (!parseNullTerminatedString(&offset, &size, &content_encoding)) {
                    return ERROR_MALFORMED;
                }
            }
        } else if (item_type == FOURCC('u', 'r', 'i', ' ')) {
            String8 item_uri_type;
            if (!parseNullTerminatedString(&offset, &size, &item_uri_type)) {