Opened 23 months ago

Last modified 23 months ago

#11199 new defect

Unusual GIF decoding failure (display OK in browser)

Reported by: MasterQuestionable Owned by:
Priority: normal Component: avcodec
Version: git-master Keywords: gif
Cc: MasterQuestionable Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description (last modified by MasterQuestionable)

͏    "Error submitting packet to decoder: Invalid data found when processing input"
͏    When: ffmpeg -v debug -hide_banner -nostdin -nostats -i "DecFail.gif" "x.gif"

͏    ͏"-c copy" no error; but doesn't fix the image.

͏    Extra:
[[

> exiftool -U -ee3 -g3:5:2 -api "RequestAll=0" -api "ByteUnit=Binary" "DecFail.gif"
---- ExifTool ----
ExifTool Version Number         : 12.96
Error                           : File format error
---- System:Other ----
File Name                       : DecFail.gif
Directory                       : .
File Size                       : 8.0 KiB
File Permissions                : -rw-rw-rw-
---- System:Time ----
File Modification Date/Time     : 2024:09:17 05:02:38+00:00
File Access Date/Time           : 2024:09:17 05:02:38+00:00
File Creation Date/Time         : 2024:09:17 05:02:38+00:00
---- GIF:Other ----
File Type                       : GIF
File Type Extension             : gif
MIME Type                       : image/gif
---- GIF:Image ----
GIF Version                     : 89a
Transparent Color               : 0
Frame Count                     : 2
Duration                        : 0.07 s
---- GIF-ScreenDescriptor:Image ----
Image Width                     : 96
Image Height                    : 96
Has Color Map                   : Yes
Color Resolution Depth          : 8
Bits Per Pixel                  : 8
Background Color                : 0
---- GIF-Animation:Image ----
Animation Iterations            : Infinite
---- Composite:Image ----
Image Size                      : 96x96
Megapixels                      : 0.009

> exiftool -v5 "-*=" "-CommonIFD0=" "DecFail.gif" -o "x.gif"
...
  Creating tags in:
Application Extension: NETSCAPE/2.0
Graphic Control: delay=0.03
Image: left=0 top=0 width=96 height=96
Graphic Control: delay=0.04
  TransparentColor = 0
Image: left=0 top=0 width=96 height=96
  Error = Format error in file
Error: Format error in file - DecFail.gif
    0 image files updated
    1 files weren't updated due to errors

]]
͏    Note: Input reported by FFmpeg as "bgra":
͏    Format yet FFmpeg doesn't seem to support. (thus implicit conversion to "bgr8")

͏    The problem is reportedly caused by Frame #2: the whiteout frame used to achieve the blink effect.

Attachments (1)

Change History (2)

comment:1 by MasterQuestionable, 23 months ago

Description: modified (diff)

͏    Note the original link now returns a different file. (currently PNG)

͏    I guess Frame #2 is dummy placeholder: blank empty.

Last edited 23 months ago by MasterQuestionable (previous) (diff)
Note: See TracTickets for help on using tickets.