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
  • mediacodecdec_common.c
Find file
BlameHistoryPermalink
  • Aman Gupta's avatar
    avcodec/mediacodecdec: fix SEGV on modern nvidia decoders · fab3418c
    Aman Gupta authored Jul 31, 2018
    This code came originally from gstreamer, where it was added in [1]
    as a work-around for the Tegra 3. (The alignment was changed in [2]
    as a response to [3], from 32-bit to 16-bit).
    
    gstreamer only used this workaround in the case where the decoder
    didn't return a slice-height property, but when the code was copied
    into avcodec the conditional got lost. This commit restores the guard
    and prefers the slice-height from the decoder when it is available.
    
    This fixes segfaults decoding 1920x1080 h264 and mpeg2 videos on the
    NVidia SHIELD after upgrading to Android Oreo.
    
    [1] https://github.com/GStreamer/gst-plugins-bad/commit/a870e6a5c30dd85240fe75c7409cc1cf1b86541d
    [2] https://github.com/GStreamer/gst-plugins-bad/commit/21ff3ae0b0127bd82951d278ca24f2d54133b7cd
    [3] https://bugzilla.gnome.org/show_bug.cgi?id=748867Signed-off-by: 's avatarAman Gupta <aman@tmm1.net>
    (cherry picked from commit 476fd6ba)
    fab3418c
mediacodecdec_common.c 27.2 KB
EditWeb IDE

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