[libav-bugs] [Bug 642] aac encoding: infinitely returning data even if fed 0/empty input

bugzilla at libav.org bugzilla at libav.org
Thu Feb 20 20:51:10 CET 2014


--- Comment #1 from Janne Grunau <janne-libav at jannau.net> 2014-02-20 20:51:10 CET ---
What is the NULL input exactly? a frame without samples or a NULL pointer?

The AVFrame *frame parameter of avcodec_encode_audio2() is documented as:

 * @param[in] frame AVFrame containing the raw audio data to be encoded.
 *                  May be NULL when flushing an encoder that has the
 *                  CODEC_CAP_DELAY capability set.

and the aac encoder sets CODEC_CAP_DELAY.

I suspect the encoder sets *got_packet_ptr and returns empty packets if feeded
with empty input frames. It's a little strange but works as advertised.

Configure bugmail: https://bugzilla.libav.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.

More information about the libav-bugs mailing list