fdkaacenc: Implement flush function
authorVivia Nikolaidou <vivia@ahiru.eu>
Fri, 14 Aug 2020 16:57:30 +0000 (19:57 +0300)
committerVivia Nikolaidou <vivia@ahiru.eu>
Mon, 17 Aug 2020 20:39:39 +0000 (23:39 +0300)
commitdc58065dfb849f04a23ec40e0989fb794dcfb2f7
tree8cee1b09a16479525fc6c58abed612a312702836
parent5d4ab18ceddcb0621ceaa33c34445d0bcc6e439a
fdkaacenc: Implement flush function

The internal fdk encoder always produces 1024 bytes even with no input,
so special care should be taken to not drain it twice.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1515>
ext/fdkaac/gstfdkaacenc.c
ext/fdkaac/gstfdkaacenc.h