]> git.sesse.net Git - ffmpeg/commit
avcodec/mediacodecdec: try to receive a frame after signaling EOF to the codec
authorMatthieu Bouron <matthieu.bouron@gmail.com>
Wed, 24 Apr 2019 07:59:28 +0000 (09:59 +0200)
committerMatthieu Bouron <matthieu.bouron@gmail.com>
Thu, 13 Jun 2019 09:41:18 +0000 (11:41 +0200)
commitd83985ce11d0f68d293e52fdccfc62fe9d28d54f
treec7520e1db5856d6296a916f8c901e46a3a148610
parentcaabe1b4956d054bc3b077ae03a0d4205dbb843e
avcodec/mediacodecdec: try to receive a frame after signaling EOF to the codec

Avoids returning EAGAIN after signaling EOF to the codec in
ff_mediacodec_dec_send() so we can try to receive a frame before
returning in mediacodec_receive_frame().

This helps avoiding an extra round-trip between avcodec_send_frame() and
avcodec_receive_frame() while draining the remaining frames.
libavcodec/mediacodecdec.c
libavcodec/mediacodecdec_common.c