Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • pipewire pipewire
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 415
    • Issues 415
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 9
    • Merge requests 9
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PipeWire
  • pipewirepipewire
  • Merge requests
  • !277

Closed
Created Jun 25, 2020 by Frédéric Danis@fdanisContributor
  • Report abuse
Report abuse

a2dpsink: Process right amount of data with sbc_encode

  • Overview 1
  • Commits 1
  • Pipelines 1
  • Changes 1

sbc_encode() can only process data with at least this->codesize bytes.
When encode_buffer() is called with less then codesize bytes, accumulate those bytes in a temporary buffer up to codesize length, then SBC encode them.

Maximum size for SBC buffer is (subbands * blocks * channels * 2) with max subbands = 8, max blocks = 16, max channels = 2, i.e. 512.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: fix_encode_buffer