aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h261.c
diff options
context:
space:
mode:
authorAman Gupta <aman@tmm1.net>2018-04-24 12:40:38 -0700
committerAman Gupta <aman@tmm1.net>2018-05-18 19:16:34 -0700
commitdf2c811b7ce32348198b8bf2fa3dc884696c2160 (patch)
treee8c1ff5230d667c7e72e292ce5b3c3f8ba0bfbb8 /libavcodec/h261.c
parent6f55a36be9a218755af59b11a63b214300ef4be8 (diff)
downloadffmpeg-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 'libavcodec/h261.c')
0 files changed, 0 insertions, 0 deletions