Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiejun Zhang <zhangjiejun1992@gmail.com>2018-01-03 07:54:20 +0300
committerJames Almer <jamrial@gmail.com>2018-01-03 23:32:55 +0300
commit677701c6b319d2d3b95a27179fde6ec2a863bf72 (patch)
tree38ceedbc6c52c996056e0c95151ef302012b42bc /libavfilter/af_afade.c
parent29b5f3115d9f217758bebd1d00e541aa3e739d2a (diff)
lavc/audiotoolboxenc: fix noise in encoded audio
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>
Diffstat (limited to 'libavfilter/af_afade.c')
0 files changed, 0 insertions, 0 deletions