fdkaacdec: Do not report decoding error for flush request
authorSanchayan Maity <sanchayan@asymptotic.io>
Thu, 26 Nov 2020 13:53:11 +0000 (19:23 +0530)
committerSanchayan Maity <sanchayan@asymptotic.io>
Sat, 29 Oct 2022 05:17:16 +0000 (10:47 +0530)
commita63d8ee72061ac8ab1707143d106ffa9525cb4d7
treec2033dcdd28fc4b4a8bc9b8aeb0d326f4e01e3ad
parent858e51638338f34c5c8889ac15b9aac8c0a08ffc
fdkaacdec: Do not report decoding error for flush request

A flush request is done when set_format is called to empty internal bit
buffer maintained by fdk-aac. When this happens, during the explicit
call to handle_buffer, decodeFrame does not return a AAC_DEC_OK. This
gets reported as a decoding error while no decoding error in fact took
place. Since this can be confusing, just return a GST_FLOW_OK and log
that an explicit flush was requested.
subprojects/gst-plugins-bad/ext/fdkaac/gstfdkaacdec.c