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
  • adxdec.c
Find file
BlameHistoryPermalink
  • Andreas Rheinhardt's avatar
    avcodec/adxdec: Remove unnecessary left-shift · 340e6b01
    Andreas Rheinhardt authored Jan 20, 2020
    Replace "(a * (1 << shift) * b + c) >> shift" by "a * b + (c >> shift)".
    It is equivalent to the old code because a is in the range of uint16_t,
    shift is 12 and b is effectively a signed 4-bit number, so that no
    overflow/truncation of high bits happens during the multiplication
    (overflow would be undefined anyway).
    Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
    Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
    340e6b01
adxdec.c 5.63 KB
EditWeb IDE

Replace adxdec.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.