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
  • libavformat
  • microdvddec.c
Find file
BlameHistoryPermalink
  • Andreas Rheinhardt's avatar
    avformat/microdvd: Use \n instead of \0 to end file header · 9bde6c6b
    Andreas Rheinhardt authored Dec 12, 2019
    Up until now, the microdvd demuxer uses av_strdup() to allocate the
    extradata from a string; its length is set to strlen() + 1, i.e.
    including the \0 at the end. Upon remuxing, the muxer would simply copy
    the extradata at the beginning, including the \0.
    
    This commit changes this by not adding the \0 to the size of the
    extradata; the muxer now delimits extradata by inserting a \n. This
    required to change the subtitles-microdvd-remux FATE-test.
    
    Furthermore, the extradata is now allocated with zeroed padding.
    
    The microdvd decoder is not affected by this, as it didn't use the size
    of the extradata at all, but treated it as a C-string.
    Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
    Reviewed-by: 's avatarPaul B Mahol <onemda@gmail.com>
    Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
    9bde6c6b
microdvddec.c 6.33 KB
EditWeb IDE

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