Changeset 677701c6 in ffmpeg

Timestamp:
Jan 3, 2018, 8:32:55 PM (7 years ago)
Author:
James Almer <jamrial@gmail.com>
Branches:
master
Children:
88cbd25b
Parents:
29b5f311
git-author:
Jiejun Zhang <zhangjiejun1992@gmail.com> (01/03/18 04:54:20)
git-committer:
James Almer <jamrial@gmail.com> (01/03/18 20:32:55)
Message:

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>

(No files)

Note: See TracChangeset for help on using the changeset viewer.