lavc: Relax API strictness in avcodec_decode_audio3 with a custom get_buffer()
authorReinhard Tartler <siretart@tauware.de>
Sun, 15 Jan 2012 19:32:11 +0000 (20:32 +0100)
committerReinhard Tartler <siretart@tauware.de>
Sun, 15 Jan 2012 20:40:59 +0000 (21:40 +0100)
commite2ff436ef64589de8486517352e17f513886e15b
tree73a3cf85f848c9030c4da99f7b6188fccb0db27c
parente6e7bfc11e93fe3499c576fa9466cb2e913b5965
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 (c3846e3ebab610be691adb8b40d376dc2f675dc4) in FFmpeg.

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
libavcodec/avcodec.h
libavcodec/utils.c