Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • P PyAV
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 37
    • Issues 37
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 26
    • Merge requests 26
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PyAV
  • PyAV
  • Merge requests
  • !421

Fix buffer_size calculations for AudioFrame planes

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Jeremy Lainé requested to merge github/fork/jlaine/audio-frame-buffer-size into develop Oct 09, 2018
  • Overview 0
  • Commits 1
  • Pipelines 0
  • Changes 7

This PR fixes several misunderstandings concerning AudioFrame buffer sizes:

  • for audio, "line size" and "buffer size" are equivalent, as there is only ever a single "line".

  • only linesizes[0] is ever populated, and it gives you the buffer size of each plane.

  • we do not need to recalculate anything upon putting frames into an AudioFrame, the buffer size does not change.

  • "align" is not a boolean, it can be any power of two.

We stop carrying around "align", "nb_channels" and "nb_planes", they are not needed.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/jlaine/audio-frame-buffer-size