Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Sign in / Register
F
ffmpeg
  • Project
    • Project
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Packages
    • Packages
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • submodule
  • ffmpeg
  • Repository

Switch branch/tag
  • ffmpeg
  • libavcodec
  • jpegtables.c
Find file
BlameHistoryPermalink
  • Nick Renieris's avatar
    lavc/jpegtables: Handle multiple mappings to the same value · 03f95403
    Nick Renieris authored Aug 29, 2019
    Some JPEGs [1] have incorrect DHT entries that map 2 codes to
    the same value.
    
    The second (last) mapping does not ever actually appear in the
    code stream, therefore ignoring any mappings after the first one
    fixes this.
    
    Without this, an "mjpeg_decode_dc: bad vlc: 0:0" error is thrown.
    
    In all known files, the 2 codes are mapped to symbol 0 so only
    that case is checked.
    
    [1]: Embedded JPEGs in "X7 RAW" and "X7 CinemaDNG" samples here:
         https://www.dji.com/gr/zenmuse-x7/info#downloadsSigned-off-by: 's avatarNick Renieris <velocityra@gmail.com>
    03f95403
jpegtables.c 5.95 KB
EditWeb IDE

Replace jpegtables.c

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.