Skip to content
Snippets Groups Projects
Commit e2ff436e authored by Reinhard Tartler's avatar Reinhard Tartler
Browse files

lavc: Relax API strictness in avcodec_decode_audio3 with a custom get_buffer()

Do not fail audio decoding with avcodec_decode_audio3 if user has set a
custom get_buffer. Strictly speaking, this was never allowed by the API,
but it seems that some software packages did so anyways. In order to
unbreak applications (cf. http://bugs.debian.org/655890

), this change
clarifies the API and overrides the custom get_buffer() with the defaults.

This change is inspired by a similar
commit (c3846e3e) in FFmpeg.

Signed-off-by: default avatarReinhard Tartler <siretart@tauware.de>
parent e6e7bfc1
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment