Skip to content

image/jpeg: "fill bytes" not supported #4337

@gopherbot

Description

@gopherbot

by jsummers3456:

In a JPEG file, extra 0xff bytes immediately preceding a marker are called "fill
bytes", and are supposed to be ignored. Go fails to decode any file that contains
fill bytes.

Test case: Use jpeg.Decode() to read the attached file.

Expected result: The image is decoded successfully.

Actual result: Error: "unsupported JPEG feature: unknown marker"

Compiler: 6g
OS: Linux
Version: devel +8a65cc8e918e Sat Nov 03 02:22:37 2012 +0800

Attachments:

  1. fbtest.jpg (1243 bytes)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions