diff options
author | Aman Gupta <aman@tmm1.net> | 2018-04-24 12:40:38 -0700 |
---|---|---|
committer | Aman Gupta <aman@tmm1.net> | 2018-05-04 11:53:33 -0700 |
commit | f6681feda641c026d84f6d207f661bf9b87d9d70 (patch) | |
tree | 2050df51d09bd71392045a1d75a310b787f3a4af /libavresample/audio_mix.c | |
parent | fe0a6bcbda0f51d0613dbbd42a7635c22530ce95 (diff) | |
download | ffmpeg-f6681feda641c026d84f6d207f661bf9b87d9d70.tar.gz |
avcodec/mediacodecdec: restructure mediacodec_receive_frame
The new logic follows a recommendation by @rcombs to use
dequeueInputBuffer with a timeout of 0 as a way to detect
whether the codec wants more data. The dequeued buffer index is
kept in MediaCodecDecContext until it can be used next.
A similar technique is also used by the Google's official media
player Exoplayer: see MediaCodecRenderer.feedInputBuffer().
Signed-off-by: Aman Gupta <aman@tmm1.net>
Signed-off-by: Matthieu Bouron <matthieu.bouron@gmail.com>
Diffstat (limited to 'libavresample/audio_mix.c')
0 files changed, 0 insertions, 0 deletions