Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a52 for the recent avcodec #26

Closed
wants to merge 9 commits into from
Closed

Conversation

tiwai
Copy link
Contributor

@tiwai tiwai commented Jun 16, 2021

No description provided.

perexg and others added 9 commits June 14, 2021 16:40
Fixes: 72b1bd9 ("jack: Make the running state tracing code more robust to multi-thread access.")
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Since it's used as AVPacket payload, the API requires it to be padded.

BugLink: alsa-project#23
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
BugLink: alsa-project#23
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ffmpeg 4.4 is the last version with avcodec_encode_audio2(). Starting from the
next release the new decoupled input-output API will be the only one available.

BugLink: alsa-project#23
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
It's no longer available starting with LIBAVCODEC_VERSION_MAJOR == 59.

BugLink: alsa-project#23
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Intel HDMI:

  PERIOD_SIZE: [32 4272000]
  PERIOD_BYTES: [128 17088000]
  PERIODS: [2 32]
  BUFFER_SIZE: [64 8544000]
  BUFFER_BYTES: [256 34176000]

Selected:

  PERIOD_SIZE: 768
  PERIOD_BYTES: 3072
  PERIODS: 32
  BUFFER_SIZE: 24576
  BUFFER_BYTES: 98304

The a52_hw_params() tries to set the big 4271616 buffer size (frames)
for speaker-test which is beyond the maximal slave buffer.

BugLink: alsa-project#23
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
The recent a52 encoder in ffmpeg accepts planar S32 (fixed encoder)
or planar float (normal encoder) only. Extend the routines to support
all combinations of 16-bit, 32-bit and float source samples.

BugLink: alsa-project#23
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
The buffer offset was incorrectly calculated in samples.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
A more modern one for the recent API.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
@perexg
Copy link
Member

perexg commented Jun 16, 2021

I pushed all patches to the master branch (changed pcm_a52 prefix to a52 for consistency). Thank you Takashi.

@perexg perexg closed this Jun 16, 2021
@perexg perexg mentioned this pull request Jun 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants