mirror of https://github.com/FFmpeg/FFmpeg.git
This fixes #6940 Although undocumented, AudioToolbox seems to require the data supplied by the callback (i.e. ffat_encode_callback) being unchanged until the next time the callback is called. In the old implementation, the AVBuffer backing the frame is recycled after the frame is freed, and somebody else (maybe the decoder) will write into the AVBuffer and change the data. AudioToolbox then encodes some wrong data and noise is produced. Retaining a frame reference solves this problem. Signed-off-by: James Almer <jamrial@gmail.com>pull/274/head
parent
29b5f3115d
commit
677701c6b3
1 changed files with 15 additions and 0 deletions
Loading…
Reference in new issue