[FFmpeg-trac] #11199(avcodec:new): Unusual GIF decoding failure (display OK in browser)

FFmpeg trac at avcodec.org
Sat Sep 21 01:11:08 EEST 2024


#11199: Unusual GIF decoding failure (display OK in browser)
-------------------------------------+-------------------------------------
             Reporter:               |                    Owner:  (none)
  MasterQuestionable                 |
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:  avcodec
              Version:  git-master   |               Resolution:
             Keywords:  gif          |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Description changed by MasterQuestionable:

Old description:

> ͏    "Error submitting packet to decoder: Invalid data found when
> processing input"
> ͏    When: `ffmpeg -i "DecFail.gif" "x.gif"`
>
> ͏    [https://ffmpeg.org/ffmpeg.html#Stream-copy ͏"-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 "-*=" "-CommonIFD0=" "DecFail.gif" -o "x.gif"
> Error: Format error in file - DecFail.gif
>     0 image files updated
>     1 files weren't updated due to errors
> }}}
> ]]

New description:

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

 ͏    [https://ffmpeg.org/ffmpeg.html#Stream-copy ͏"-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.

--
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/11199#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list