summaryrefslogtreecommitdiff
path: root/libavcodec/mediacodecdec_common.h
diff options
context:
space:
mode:
authorAman Gupta <aman@tmm1.net>2018-04-24 18:54:45 -0700
committerAman Gupta <aman@tmm1.net>2018-05-04 11:53:41 -0700
commita75bb5496ac6e7e194f1c6fd3b87f02a52e74adb (patch)
tree065aea250ffd70a8aeaf51a8cc62d8480e6c3f1b /libavcodec/mediacodecdec_common.h
parentf6681feda641c026d84f6d207f661bf9b87d9d70 (diff)
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>
Diffstat (limited to 'libavcodec/mediacodecdec_common.h')
-rw-r--r--libavcodec/mediacodecdec_common.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/libavcodec/mediacodecdec_common.h b/libavcodec/mediacodecdec_common.h
index 0b21129fee..d280236b8e 100644
--- a/libavcodec/mediacodecdec_common.h
+++ b/libavcodec/mediacodecdec_common.h
@@ -64,7 +64,6 @@ typedef struct MediaCodecDecContext {
int display_width;
int display_height;
- uint64_t output_buffer_count;
ssize_t current_input_buffer;
bool delay_flush;