Skip to content
  • Thomas Guillem's avatar
    mediacodec: implement drain · b69e1571
    Thomas Guillem authored
    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.
    b69e1571