[vlc-commits] mediacodec: implement drain
Thomas Guillem
git at videolan.org
Mon Dec 21 15:52:58 CET 2015
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Dec 14 18:41:44 2015 +0100| [b69e157172e767a02295266c37dd5a0557215fa1] | committer: Thomas Guillem
mediacodec: implement drain
When draining (pp_block == NULL), queue a dummy input buffer with a EOS flag,
and wait for the output thread to process all output frames.
This patch also add extra check when processing output buffers. Indeed, in some
case, the last output buffer with a EOS flag can be invalid.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b69e157172e767a02295266c37dd5a0557215fa1
---
modules/codec/omxil/mediacodec.c | 156 ++++++++++++++++++++++++----------
modules/codec/omxil/mediacodec.h | 1 +
modules/codec/omxil/mediacodec_jni.c | 26 ++++--
modules/codec/omxil/mediacodec_ndk.c | 8 +-
4 files changed, 138 insertions(+), 53 deletions(-)
Diff: http://git.videolan.org/gitweb.cgi/vlc.git/?a=commitdiff;h=b69e157172e767a02295266c37dd5a0557215fa1
More information about the vlc-commits
mailing list