diff options
author | Aman Gupta <aman@tmm1.net> | 2018-04-24 12:40:38 -0700 |
---|---|---|
committer | Aman Gupta <aman@tmm1.net> | 2018-05-18 19:16:34 -0700 |
commit | df2c811b7ce32348198b8bf2fa3dc884696c2160 (patch) | |
tree | e8c1ff5230d667c7e72e292ce5b3c3f8ba0bfbb8 /libswresample/aarch64/neontest.c | |
parent | 6f55a36be9a218755af59b11a63b214300ef4be8 (diff) | |
download | ffmpeg-df2c811b7ce32348198b8bf2fa3dc884696c2160.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>
(cherry picked from commit f6681feda641c026d84f6d207f661bf9b87d9d70)
Diffstat (limited to 'libswresample/aarch64/neontest.c')
0 files changed, 0 insertions, 0 deletions