avcodec/mediacodecdec: wait on first frame after input buffers are full
authorAman Gupta <aman@tmm1.net>
Wed, 25 Apr 2018 01:54:45 +0000 (18:54 -0700)
committerAman Gupta <aman@tmm1.net>
Fri, 4 May 2018 18:53:41 +0000 (11:53 -0700)
commita75bb5496ac6e7e194f1c6fd3b87f02a52e74adb
tree065aea250ffd70a8aeaf51a8cc62d8480e6c3f1b
parentf6681feda641c026d84f6d207f661bf9b87d9d70
avcodec/mediacodecdec: wait on first frame after input buffers are full

The output_buffer_count==0 special case is no longer required, and
can cause spurious EAGAIN to surface to the user when input buffers
are filled up. Since the caller now knows if the decoder is accepting
new input (via current_input_buffer>=0), let the wait parameter
control whether we block or not.

Signed-off-by: Aman Gupta <aman@tmm1.net>
Signed-off-by: Matthieu Bouron <matthieu.bouron@gmail.com>
libavcodec/mediacodecdec_common.c
libavcodec/mediacodecdec_common.h